Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: alive command  (Read 1890 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.