- Joined
- Apr 27, 2022
- Messages
- 6
I want to make a unit(1) in a given rect. If you kill him, then a unit (2) with a certain animation appears in his place.
The appearance of unit (1) works, but for some reason the conditions for the appearance of unit (2) do not want to work in case of the death of unit (1).
I tried different ways, but nothing comes out.
Help me figure out how to do this?
The appearance of unit (1) works, but for some reason the conditions for the appearance of unit (2) do not want to work in case of the death of unit (1).
I tried different ways, but nothing comes out.
Help me figure out how to do this?
-
Spawn boss
-
Events
- Time - Elapsed game time is 5.00 seconds
- Conditions
-
Actions
- Unit - Create 1 TEST_UNIT for Neutral Extra at (Center of Boss spawn <gen>) facing Default building facing (270.0) degrees
-
Animation - Play (Last created unit)'s stand channel animation
-
Do Multiple ActionsFor each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
Custom script: (exitwhen (TEST_UNIT_INTEGER Equal to (==) 0))
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Last created unit) Equal to (==) (Dying unit)
-
Then - Actions
- Set TEST_UNIT_INTEGER = 0
-
Else - Actions
- Set TEST_UNIT_INTEGER = 1
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Custom script: (exitwhen (TEST_UNIT_INTEGER Equal to (==) 0))
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
Custom script: (exitwhen (TEST_UNIT_INTEGER Equal to (==) 1))
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- TEST_UNIT_INTEGER Equal to (==) 0
-
Then - Actions
- Unit - Create 1 Lootbox for Neutral Passive at (Position of (Dying unit)) facing Default building facing (270.0) degrees
- Animation - Play (Last created unit)'s Birth animation
- Set TEST_UNIT_INTEGER = 1
-
Else - Actions
- Set TEST_UNIT_INTEGER = 2
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Custom script: (exitwhen (TEST_UNIT_INTEGER Equal to (==) 1))
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to 10, do (Actions)
-
Events