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: Detect fuel  (Read 655 times)

0 Members and 1 Guest are viewing this topic.

pazuzu

  • Guest
Detect fuel
« on: 27 Apr 2005, 12:45:41 »
How do I detect how much fuel is in a vehicle?

I want to use this for a condition in a trigger.

Thanks.

StonedSoldier

  • Guest
Re:Detect fuel
« Reply #1 on: 27 Apr 2005, 12:57:01 »
fuel vehiclename

eg

condition : fuel tank1 == 0
activation : tank1 sidechat "Damn, wer're out of juice!!"
« Last Edit: 27 Apr 2005, 12:58:38 by StonedSoldier »

pazuzu

  • Guest
Re:Detect fuel
« Reply #2 on: 27 Apr 2005, 20:13:07 »
Thanks for the reply.

I couldn't get that to work but I finally figured it out....

I just looked at a detect dammage line I used & changed it to fuel.

(fuel heli) < .5

So if chopper has only half its fuel it activates the trigger giving a warning.

Thanks again.