Gunslinger52 Posted November 2, 2024 Posted November 2, 2024 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
Kanelbolle Posted November 2, 2024 Posted November 2, 2024 (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 November 2, 2024 by Kanelbolle 1 1 WARGAMES Servers: https://forum.dcs.world/topic/301046-wargames-server-pvp-and-pve-campaign-servers/ Scripts: RGC & SPGG https://github.com/AGluttonForPunishment/
Gunslinger52 Posted November 2, 2024 Author Posted November 2, 2024 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
Gunslinger52 Posted November 4, 2024 Author Posted November 4, 2024 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
Grimes Posted November 6, 2024 Posted November 6, 2024 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. 1 The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts