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: Destroying Objects  (Read 2330 times)

0 Members and 1 Guest are viewing this topic.

Dog40Acoy

  • Guest
Destroying Objects
« on: 21 Jul 2006, 16:31:59 »
Ok I am sure this is fairly simple-

I want to destroy a fuel station as part of the mission objectives.

Say for example the ID number is 124034 of the fuel station. How do I make a script via a trigger that when the fuel station is destroyed it checks off the objective. I know all the eg "3" ObjStatus "DONE" bit, but have drawn a complete blank on how to trigger that when fuel station 124034 is destroyed.

TY in advance

Offline Seven

  • Members
  • *
  • Am I a llama?
Re: Destroying Objects
« Reply #1 on: 21 Jul 2006, 20:19:19 »
condition: getdammage (object 124034) >= 1;  probably  :)

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re: Destroying Objects
« Reply #2 on: 22 Jul 2006, 00:34:08 »
Either
Code: [Select]
getdammage (object 124034) >= 1 as posted above or

Code: [Select]
! alive (object 124034)

Dog40Acoy

  • Guest
Re: Destroying Objects
« Reply #3 on: 25 Jul 2006, 10:45:04 »
Excellent thanks fellas

It works a treat.