I'm trying to fix a leak and have searched the forums found out how to and here is what I have...
Recreate on Death
Events
Unit - A unit Dies
Conditions
((Triggering unit) is Summoned) Equal to False
Actions
Wait 8.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Dying unit)) Current lumber) Equal to 0
Then - Actions
Set SpawnPoint = (Random point in (Playable map area))
Unit - Create 1 Hero for (Triggering player) at SpawnPoint facing Default building facing degrees
Camera - Lock camera target for (Triggering player) to (Last created unit), offset by (0.00, 0.00) using Default rotation
Custom script: Call RemoveLocation(udg_SpawnPoint)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Dying unit)) Current lumber) Equal to 1
Then - Actions
Set SpawnPoint = (Random point in (Playable map area))
Unit - Create 1 Hero2 for (Triggering player) at SpawnPoint facing Default building facing degrees
Camera - Lock camera target for (Triggering player) to (Last created unit), offset by (0.00, 0.00) using Default rotation
Custom script: Call RemoveLocation(udg_SpawnPoint)
Else - Actions
"Hero" and "Hero2" are put in place of the heroes name just for the site. It is a unit not a variable.
When I try to save the game it gives me the expected endif error.
Help please
Recreate on Death
Events
Unit - A unit Dies
Conditions
((Triggering unit) is Summoned) Equal to False
Actions
Wait 8.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Dying unit)) Current lumber) Equal to 0
Then - Actions
Set SpawnPoint = (Random point in (Playable map area))
Unit - Create 1 Hero for (Triggering player) at SpawnPoint facing Default building facing degrees
Camera - Lock camera target for (Triggering player) to (Last created unit), offset by (0.00, 0.00) using Default rotation
Custom script: Call RemoveLocation(udg_SpawnPoint)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Dying unit)) Current lumber) Equal to 1
Then - Actions
Set SpawnPoint = (Random point in (Playable map area))
Unit - Create 1 Hero2 for (Triggering player) at SpawnPoint facing Default building facing degrees
Camera - Lock camera target for (Triggering player) to (Last created unit), offset by (0.00, 0.00) using Default rotation
Custom script: Call RemoveLocation(udg_SpawnPoint)
Else - Actions
"Hero" and "Hero2" are put in place of the heroes name just for the site. It is a unit not a variable.
When I try to save the game it gives me the expected endif error.
Help please