Page 1 of 1

Time to Ready

Posted: Sun May 30, 2021 10:05 am
by Gunner98
Adding a squadron to a base and everything is working except the ready time. I would like the AC to be ready in 60 min but that is not working.

Probably something simple but have tried a bunch of different ways. Any thoughts?


for i=1,8 do
ScenEdit_AddUnit({side= 'Australasia', type ='Air', DBID=1692, LoadoutID=8835, TimeToReady_Minutes=60, unitname ='77th ARS Totin Tigers #'..i, base= 'Andersen AFB'})
end

Thanks

RE: Time to Ready

Posted: Sun May 30, 2021 10:32 am
by Parel803
Not sure if I'm helping but I got from someone to make a second line:
ScenEdit_SetLoadout({unitname=u.guid, loadoutid=0, timetoready_minutes=60});
with regards Gert-Jan

RE: Time to Ready

Posted: Sun May 30, 2021 12:03 pm
by Kushan04
According the the Lua wiki, readytime is read only for the AddUnit function. SetLoadout should work.

Should look something like this.

Code: Select all

 ScenEdit_SetLoadout({UnitNameOrID='1023 Sqd. #1', LoadoutID=7697, TimeToReady_Minutes=30, IgnoreMagazines='True'})
 

RE: Time to Ready

Posted: Sun May 30, 2021 12:45 pm
by Gunner98
Thankyou Parel803 and Kushan --- worked the charm.

Cheers

B

RE: Time to Ready

Posted: Sun May 30, 2021 7:11 pm
by michaelm75au
The ready time is an attribute of the loadout not the aircraft.[:D]
It is a bit confusing as the loadouts have a default ready time, but the aircraft/ship have a timer to become 'ready'.