Jump to content
RyanM

Giving Air unit unlimited fuel

Recommended Posts

I searched but couldn't find anything so...is there anyway to give a air unit unlimited fuel?

Thanks

Share this post


Link to post
Share on other sites

Type "this setfuel 1" without quotes in one of the units waypoints and every time it reaches that point it gets a full load.

Share this post


Link to post
Share on other sites

Is there a way to set it so that once the air unit reaches a certain level of fuel (uses up the fuel to a certain level) it will automatically go back to full fuel? Because this mission that I am making takes kind of a long time to complete, and the air unit is on a guard waypoint flying around so it has already reached all its waypoints. Or something I can input to make the unit not lose fuel at all?

Share this post


Link to post
Share on other sites
Is there a way to set it so that once the air unit reaches a certain level of fuel (uses up the fuel to a certain level) it will automatically go back to full fuel? Because this mission that I am making takes kind of a long time to complete, and the air unit is on a guard waypoint flying around so it has already reached all its waypoints. Or something I can input to make the unit not lose fuel at all?

in air unit initialization field:

nul = this spawn { while {alive _this} do { _this setFuel 1; sleep 60 } };

Unless you require the handling to be actually checked for amount, then you could do something like this:

nul = this spawn { waitUntil { if !(alive _this) exitWith {}; if (fuel _this < 0.25) then { _this setFuel 1 }; false } };

Change 0.25 to the level you want it to refill to 100%.

You can add a sleep before ; false to make it less resource intensive (for as far as it could be :P)

Edited by Sickboy
  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×