• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Spell] Store Terrain Tile To Create a Kind Of "Aura"

Status
Not open for further replies.
Level 3
Joined
Nov 21, 2016
Messages
30
i wonder if i can store the terrain tile to when the unit enter a area the terrain change but when leave the coord range it change back to what it was
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
You can check the terrain type around a unit by picking a selection of points and seeing if:
  • (Terrain type at (<Your point>) Equal to Lordaeron Summer - Dirt
Which you can then change using:
  • Environment - Change terrain type at (<Your point>) to Lordaeron Fall - Dirt using variation -1 in an area of size 1 and shape Circle
You will have to remember which locations you've changed so when the unit moves away you can change them back. A hashtable or a large array (depending on if this is supposed to be MUI) could work to store the (X,Y) coordinates of the tiles.
 
Status
Not open for further replies.
Top