[SOLVED] Lava Surge Trigger - How to make units take damage when entering lava?
Hello,
I have been watching tutorials and been reading a lot on how to make it so that if any unit on the map enters the lava (which consists of two regions I made), it dies.
The only problem I have is this: I can't get it to work..
I have especially followed this guide: http://www.sc2mapster.com/forums/re...gger-terrain-make-lava-water-raise-and-lower/
I managed to reach the "General - If (Conditions) then do (Actions) else do (Actions)", but I can't find the "((Picked unit) uses Fly mover) == false]
((Picked unit) uses FlyLow (Unnamed) mover) == false" or the "(Ground height at (Position of (Picked unit))) <= 10.5" as well as the " Unit - Add 1 Lava Damage to (Picked unit) from player 15 Add behavior to unit."
Could anyone please help me with this problem? I have been struggling with this problem for 3 hours now.. I'am so frustrated.
Thanks!
Hello,
I have been watching tutorials and been reading a lot on how to make it so that if any unit on the map enters the lava (which consists of two regions I made), it dies.
The only problem I have is this: I can't get it to work..
I have especially followed this guide: http://www.sc2mapster.com/forums/re...gger-terrain-make-lava-water-raise-and-lower/
Code:
Kill Units in Lava Trigger
This trigger will kill any unit that stays in the lava when it is risen.
Create a Trigger named 'Kill units in Lava' with a Periodic Event for the event.
Events
Timer - Every 0.5 seconds of Game Time
Local Variables
Conditions
Lava Death? == true
Actions
Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any
Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
((Picked unit) uses Fly mover) == false]
((Picked unit) uses FlyLow (Unnamed) mover) == false
Then
General - If (Conditions) then do (Actions) else do (Actions)
If
(Ground height at (Position of (Picked unit))) <= 10.5
Then
Unit - Add 1 Lava Damage to (Picked unit) from player 15 Add behavior to unit.
Else
Else
I managed to reach the "General - If (Conditions) then do (Actions) else do (Actions)", but I can't find the "((Picked unit) uses Fly mover) == false]
((Picked unit) uses FlyLow (Unnamed) mover) == false" or the "(Ground height at (Position of (Picked unit))) <= 10.5" as well as the " Unit - Add 1 Lava Damage to (Picked unit) from player 15 Add behavior to unit."
Could anyone please help me with this problem? I have been struggling with this problem for 3 hours now.. I'am so frustrated.
Thanks!