Page 1 of 1

Set time to be ready with Lua?

Posted: Sat Jun 09, 2018 7:43 am
by Zaslon
Hi!

I am working in a scenery where I want to have some aircraft in readiness state of 4 minutes, so due to the take off process takes 2 minutes, I want to set the time to be ready to 2 minutes when the target is detected. It is possible to do it with lua?

Thanks.

RE: Set time to be ready with Lua?

Posted: Sat Jun 09, 2018 10:09 am
by TyphoonFr
Hello,

ScenEdit_SetLoadout (loadoutinfo)
http://commandlua.github.io/beta/index.html#LoadoutInfo

In your case, try this:
ScenEdit_SetLoadout({name=unit.name,loadoutid=0,timetoready_minutes=2})


RE: Set time to be ready with Lua?

Posted: Sat Jun 09, 2018 11:31 am
by Zaslon
Merci beaucoup Monsieur TyphoonFR.