Jump to content

Recommended Posts

Posted

Hi all,

does anyone know how to do this?  I'm trying to force the situation, where a convoy can only reach its destination, if it has been refuelled en route.

Thanks in advance.

'52

i7-11700F  64GB RAM  RTX3060  WIN 11 Pro  HP Reverb G2  Meta Quest 3 TM Cougar & Logitech X56

Posted (edited)
7 hours ago, Gunslinger52 said:

Hi all,

does anyone know how to do this?  I'm trying to force the situation, where a convoy can only reach its destination, if it has been refuelled en route.

Thanks in advance.

'52

As far as i know there is no way to set an amount of fuel except unlimited fuel (only for Airplanes, Helicopters )

But if the convoy realistically can't reach it with the fuel it has, you can just set a waypoint to a fuel truck and make them wait there for a set amount of time with a flag or script condition that check if it is full (https://wiki.hoggitworld.com/view/DCS_func_getFuel)

 

Other way is just use a flag, if the flag is a value, then it has been fueled and will continue. if not then it stops at a waypoint.

 

Edited by Kanelbolle
  • Like 1
  • Thanks 1
Posted
11 hours ago, Kanelbolle said:

As far as i know there is no way to set an amount of fuel except unlimited fuel (only for Airplanes, Helicopters )

But if the convoy realistically can't reach it with the fuel it has, you can just set a waypoint to a fuel truck and make them wait there for a set amount of time with a flag or script condition that check if it is full (https://wiki.hoggitworld.com/view/DCS_func_getFuel)

 

Other way is just use a flag, if the flag is a value, then it has been fueled and will continue. if not then it stops at a waypoint.

 

 

Hey thanks Kanelbolle,

That's a great idea.  Will give it a try. 

Appreciate it. 

'52

i7-11700F  64GB RAM  RTX3060  WIN 11 Pro  HP Reverb G2  Meta Quest 3 TM Cougar & Logitech X56

Posted
On 11/2/2024 at 9:32 PM, Kanelbolle said:

As far as i know there is no way to set an amount of fuel except unlimited fuel (only for Airplanes, Helicopters )

But if the convoy realistically can't reach it with the fuel it has, you can just set a waypoint to a fuel truck and make them wait there for a set amount of time with a flag or script condition that check if it is full (https://wiki.hoggitworld.com/view/DCS_func_getFuel)

 

Other way is just use a flag, if the flag is a value, then it has been fueled and will continue. if not then it stops at a waypoint.

 

 

Hi Kanelbolle,

have reread your post:  Are you saying that despite vehicles having unlimited fuel, the 'fuel' still reduces, and the vehicle can be refuelled?  

Cheers,

'52

i7-11700F  64GB RAM  RTX3060  WIN 11 Pro  HP Reverb G2  Meta Quest 3 TM Cougar & Logitech X56

Posted

Ground vehicles don't have fuel. TBH I'm not sure what Unit.getFuel returns if you try to run it on a ground unit or ship. If it returns a number, which it might not, I doubt that value will change over time. 

Best you can do is to fake it. 

  • Thanks 1

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...