Hi all,
I'm very new to scipting and am keen to learn more. I have a question which I hope someone can help me out with. I've seen the following information regarding the getFuel script on the Hoggit page (https://wiki.hoggitworld.com/view/DCS_func_getFuel) and I'm not sure if I'm reading the example correctly. It states the following:
The following is the fuel returned for a flight of 4 F-15C. The flight lead has 0 external fuel tanks with each subsequent wingman adding a 610 Gal external fuel tank to their payload.
local flightFuel = {}
for i, unitObject in pairs(Group.getByName('flight'):getUnits()) do
flightFuel = Unit.getFuel(unitObject)
end
Returns the following:
Unit 1 Fuel: 1
Unit 2 Fuel: 1.3026511669159
Unit 3 Fuel: 1.6053023338318
Unit 4 Fuel: 1.9079535007477
Does this indicate that the script will display on screen the information about fuel state above (in red)? I've amended the 'flight' information with the correct name of a two aircraft group in the mission and it seems that the script is running correctly (no errors) but I can't work out if it's supposed to display anything on screen or not. Some assistance would be very much appreciated and I'm sorry for such a noob question.
Thanks in advance.