0 lives left = defeat

Kebabnisse

New Member
Reaction score
1
How to i make for my td so when i have 0 lives left then i/we loose?
this is my third day on making td maps so be easy on me! :)
and im from sweden so explain easy and good xD

if it is a thread like this then post it please:D
 

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
Keep an integer variable to store the lives, then create a trigger with the event "A unit enters MyRegionForLosingLives <gen>". The actions would be something along these lines:
Code:
Set IntegerVariable = IntegerVariable - 1
If/Then/Else - Multiple actions
If IntegerVariable Less than or Equal to 0
Then
    Defeat Player...
Else
 

Kebabnisse

New Member
Reaction score
1
Keep an integer variable to store the lives, then create a trigger with the event "A unit enters MyRegionForLosingLives <gen>". The actions would be something along these lines:
Code:
Set IntegerVariable = IntegerVariable - 1
If/Then/Else - Multiple actions
If IntegerVariable Less than or Equal to 0
Then
    Defeat Player...
Else

Thank you!!!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top