Warcraft III resources & community, 2003–2006 · archived

terran triggers

6 posts
#1

terran triggers

is there a action for triggers for when a unit enter a certain terran like grass or snow?
#2

Re: terran triggers

BlazeLanceris there a action for triggers for when a unit enter a certain terran like grass or snow?

Yes, i would make it like this; 8)

First make a Variable named "tempPoint" Note; its a Point
Event;
Time - Every 0.10 seconds of game time
Conditions;
None
Actions;
Unit Group - Pick every unit in(Units in(Entire map))
Loop Actions;
Set tempPoint = (Position of (Picked unit))
If (All Conditions are True)then do (Then Actions)Else do (Else Actions)
- If Conditions
(Terrain type at tempPoint)Equal to Cityscape - *Grass Trim "Change this to the terrain type you want*
- Then Actions
Unit - *Kill (Picked unit)"Change this to the action you want*
- Else Actions
Custom script: call RemoveLocation(udg_tempPoint)

I would personaly make it like this 8)
#3
y did we have to remove the var? if we remove it wont it not work the second time?
#4
it might recreate the variable. or it might not actually get rid of it, but stop it from being used. i don't know that much about scripting =/
#5
si isnt there no real need to remove the var and just end in "do nothing"?
#6
BlazeLancersi isnt there no real need to remove the var and just end in "do nothing"?

pretty much but this saves just a smidgeon of space on ur map. actually u wouldn't use "do nothing" u would stop the trigger there.
terran triggers - Warcraft 3 Forums · wc3sear.ch