-Necro-
Terrain Trigger
Moderator: Cheaters
-
Necroexodia
- Newcomer
- Posts: 12
- Joined: June 20th, 2008, 4:17 pm
Terrain Trigger
Hi everyone, just a quick question, is there a way to make a trigger so when a unit enters a certain terrain they get teleported somewhere else? If so, could you tell me how please 
-Necro-
-Necro-
-
Arabidnun
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Terrain Trigger
There is a little variation to this trigger, Not exactly as you say, but works the same.
It picks every unit based on If unit is hero( set this to whatever you want it to check for players hero), and if that picked unit is on X terrain, then move that hero to Blah blah blah.
Untitled Trigger 001
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Set Temp_Group = (Units in (Playable map area))
Unit Group - Pick every unit in Temp_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
(Terrain type at (Position of (Picked unit))) Equal to Lordaeron Summer - Dirt
Then - Actions
Unit - Move (Picked unit) instantly to (Center of (Playable map area))
Else - Actions
Custom script: call DestroyGroup(udg_Temp_Group)
It picks every unit based on If unit is hero( set this to whatever you want it to check for players hero), and if that picked unit is on X terrain, then move that hero to Blah blah blah.
Untitled Trigger 001
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Set Temp_Group = (Units in (Playable map area))
Unit Group - Pick every unit in Temp_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
(Terrain type at (Position of (Picked unit))) Equal to Lordaeron Summer - Dirt
Then - Actions
Unit - Move (Picked unit) instantly to (Center of (Playable map area))
Else - Actions
Custom script: call DestroyGroup(udg_Temp_Group)
-
Necroexodia
- Newcomer
- Posts: 12
- Joined: June 20th, 2008, 4:17 pm
Re: Terrain Trigger
Thanks for the help
But I still don't really understand it :p
Edit: Nevermind, got it working now
Thanks alot for the help 
Edit: Nevermind, got it working now
-
Arabidnun
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*