Home   Help Search Login Register  

Author Topic: alive command  (Read 938 times)

0 Members and 1 Guest are viewing this topic.

Charlotte

  • Guest
alive command
« on: 04 Jul 2003, 13:45:01 »
Hello.
I know is a silly question.
I have got 3 soldiers and 1 civilian in my multiplayer game, the objective of the game is to get 10 mts closer or less to the civilian... my problem is that how can i write a command that if the 3 soldiers are dead and the civilian is still alive the game will finish.

What I did was to use the alive obj command..like this

not (alive cobra)

How can I add the other 2 players ie:
not (alive cobra), not (alive player2 ), not (alive player3)

BUT THE ABOVE COMMAND DOESNT WORK.

any suggestions pleaseeeeeeeeeeeeeeeee!
Thanks a lot.
xx

Tactician

  • Guest
Re:alive command
« Reply #1 on: 04 Jul 2003, 14:03:31 »
There are a few ways to have multiple conditions.  Try this:

not (alive cobra) AND not (alive player2) AND not (alive player3)

&& is another symbol for AND.  You can also use OR or || in condition lines.