Home   Help Search Login Register  

Author Topic: noob question  (Read 538 times)

0 Members and 1 Guest are viewing this topic.

skaterdoive87

  • Guest
noob question
« on: 19 Oct 2003, 15:31:24 »
hey, i was wondering how to check if an object is dead without using
triggers, do u use the alive command? if so could you plz tell me the syntax
or tell me where i could find out. thanks

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:noob question
« Reply #1 on: 19 Oct 2003, 15:41:45 »
Why do you wanna do that? You wanna put it in a script? Just put ? in front of the original syntax and it'll work.

:beat: *Gets Shot* :beat:

Knut Erik

  • Guest
Re:noob question
« Reply #2 on: 19 Oct 2003, 15:42:35 »
To check if an object is dead, you must use the "alive" command..
Goes in the condicion field of a trigger
not (alive Car1)
To check if multiple units are dead you must seperate them with "and"
not (alive Car1) AND not (alive Car2)

You can also use this command in a script!
@not (alive Car1)  


You'll soon get the hang of it  ;)

skaterdoive87

  • Guest
Re:noob question
« Reply #3 on: 19 Oct 2003, 15:53:05 »
yeah i was wanting to put it in a script, thanks for the info, much appreciated
 :D

Knut Erik

  • Guest
Re:noob question
« Reply #4 on: 19 Oct 2003, 16:00:24 »
Beware of that the "?" only checks the condicion is true and then it goes on... It won't wait untill the condicion is true...
So to make any use of it you'll have to make something happen IF the condicion is true....

?not (alive Car1) : Player sideChat "Oh no... The car is broken.. Now I'll have to WALK home.."
Like that..  ;D

But if the car is alive when the script gets to this point, no sideChat will appear... And the script will never check that condicion again unless you have a looping script or runs the script twice..  ;)

With that said, if you're problem is solved, then just press the "Solve Topic" button in the lower left corner of the screen  :o