BRUTAL
I'm working
- Reaction score
- 118
im my maze when the hero goes into a region theres a terrian deformation at his location till the hero gets the the end, and enters another region which turns that off
-problem
say player 1 enters that region and starts the deformation at his location and just for that terrian type*forgot to mention* and player 2 is right behind that hero like 5 seconds and on the same terrian type as what the deformation would occur on, when player 1 enters that region, player 2 will get the deformation as well, but i only want it to go for the unit that enters, but still work for each hero.
triggers
i think its something with the first trigger? idk
i tryed different things, but those are the original triggers
-problem
say player 1 enters that region and starts the deformation at his location and just for that terrian type*forgot to mention* and player 2 is right behind that hero like 5 seconds and on the same terrian type as what the deformation would occur on, when player 1 enters that region, player 2 will get the deformation as well, but i only want it to go for the unit that enters, but still work for each hero.
triggers
Code:
Enabling Deformation
Events
Unit - A unit enters Region 047 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Demon Hunter
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Trigger - Turn on Terrian Deformation <gen>
Code:
Terrian Deformation
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Set Loc[0] = (Position of Unit[(Integer A)])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at Loc[0]) Equal to Cityscape - Dirt
Then - Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Environment - Create a 0.20 second Temporary crater deformation at Loc[0] with radius 125.00 and depth 40.00
Else - Actions
Custom script: call RemoveLocation(udg_Loc[0])
Code:
Disble Deformation
Events
Unit - A unit enters Region 045 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Demon Hunter
Actions
Trigger - Turn off Terrian Deformation <gen>
Trigger - Turn off Enabling Deformation <gen>
i think its something with the first trigger? idk
i tryed different things, but those are the original triggers