OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bardosy on 09 Jun 2005, 10:08:04

Title: getFuel ?
Post by: bardosy on 09 Jun 2005, 10:08:04
How can I triggered an empty vehicle, when the player refuel it?
I can't finde the function getFuel, just the setFuel...

I want a setObjective "DONE" if the player refuel an Apache.
Title: Re:getFuel ?
Post by: qqqqqq on 09 Jun 2005, 11:04:04
fuel vehicle

Operand types:
vehicle: Object
Type of returned value:
Number
Description:
Check how much fuel is left in the gas tank, in range 0 to 1.

Example:
fuel vehicle player
Title: Re:getFuel ?
Post by: bardosy on 09 Jun 2005, 11:25:04
Thanks! I think I have an older reference...
I updated a new one.

Thanks again!!!