hi
in my maze im using a trigger that kills you if you go off the path
but its the simple one
Code:
and i guess there are better ways to make it
so can anyone show me how
and explain it so i learn
in my maze im using a trigger that kills you if you go off the path
but its the simple one
Code:
Code:
Walk off path
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type Civilian) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at (Position of (Picked unit))) Equal to Ashenvale - Grassy Dirt
Then - Actions
Unit - Kill (Picked Unit)
Else - Actions
Custom script: call DestroyGroup(GetLastCreatedGroup())
and i guess there are better ways to make it
so can anyone show me how
and explain it so i learn