Set time to be ready with Lua?

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
Zaslon
Posts: 299
Joined: Sun Jun 14, 2015 8:52 am

Set time to be ready with Lua?

Post 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.
Image
Kids think about Iran and Amateurs think about Russia, but professionals think about China
TyphoonFr
Posts: 188
Joined: Thu Nov 23, 2017 4:27 pm
Location: FRA
Contact:

RE: Set time to be ready with Lua?

Post 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})

Christophe

To all English teachers of the forum, sorry if English is not my mother language.
Zaslon
Posts: 299
Joined: Sun Jun 14, 2015 8:52 am

RE: Set time to be ready with Lua?

Post by Zaslon »

Merci beaucoup Monsieur TyphoonFR.
Image
Kids think about Iran and Amateurs think about Russia, but professionals think about China
Post Reply

Return to “Lua Legion”