Set time to be ready with Lua? (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion



Message


Zaslon -> Set time to be ready with Lua? (6/9/2018 10:43:36 AM)

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.




TyphoonFr -> RE: Set time to be ready with Lua? (6/9/2018 1:09:55 PM)

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





Zaslon -> RE: Set time to be ready with Lua? (6/9/2018 2:31:33 PM)

Merci beaucoup Monsieur TyphoonFR.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.765625