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: heli fuel script  (Read 2764 times)

0 Members and 2 Guests are viewing this topic.

stalker336

  • Guest
Re:heli fuel script
« Reply #15 on: 24 Feb 2004, 00:24:30 »
wohoo ok its working as long as chopper is on ground no fuel is used
as soon as its height is over 2 meters fuel starts being used
i no this script will seem very rough to some of you with the looping
but im just glad i got it working just in time with only 3 hairs left on my head ! its so easy but yet so hard . thnx for all yur help!

;fuel.sqs

  _chopper =_this select 0
 

#Update
 
_chopperheight = getpos _chopper select 2
?_chopperheight < 2 : goto "Update"

~2
 
#drain

_amount = fuel _chopper

_amount = _amount - 0.01

_chopper setfuel _amount

_chopperheight = getpos _chopper select 2
?_chopperheight < 2 : goto "Update"

? _amount == 0 : goto "exit"

~1.5
goto "drain"

#exit
exit

 

Fishion

  • Guest
Re:heli fuel script
« Reply #16 on: 24 Feb 2004, 09:55:55 »
i dont understand how fishion was calling 2 parameters the same
ie. drain=_this select 1
 chopperheight=_this select 1

Ahhh you are right about this mate, forgot to delete the _chopperheight.
As you might notice, it's not used.

-Fishion