Jump to content
Sign in to follow this  
KillerP90

replacement for ALIVE command

Recommended Posts

Hey ya'll im trying to find a replacement for the !alive or alive command which lets me make missions.

Or im just missing how to make the objective completed after i kill a unit/empty vehicle <(I am testing on)

I keep getting ALIVE: type string, expected object

Share this post


Link to post
Share on other sites

simple:

create a trigger, in the conditions u write: !alive object

object= the object that needs to be killed

alive = tests if a object is alive, returns true (when alive) or false (not alive)

! = inverts the command afterwards

so if u have a unit called "p1" which is living and u ask the engine: "alive p1" it returns true if u ask: "!alive p1" it will return false

the trigger will fire, when all conditions are true. so if u want the trigger to be fired, when a unit was killed use "!alive unit" if u want it to fire when a unit's alive use "alive unit"

Share this post


Link to post
Share on other sites

this is waht i put

!alive unitname

or

!alive "unitname"

---------- Post added at 07:43 PM ---------- Previous post was at 07:41 PM ----------

Ah fixed!

Share this post


Link to post
Share on other sites

How did you fix it? I only get "Type bool, expected nothing" when I follow what Ctulhu616 posted earlier.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×