Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Set time to be ready with Lua?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Set time to be ready with Lua? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Set time to be ready with Lua? - 6/9/2018 10:43:36 AM   
No New Messages
Zaslon
Matrix Veteran


 

Posts: 283
Joined: 6/14/2015
Status: offline
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.

_____________________________


Kids think about Iran and Amateurs think about Russia, but professionals think about China
Post #: 1
RE: Set time to be ready with Lua? - 6/9/2018 1:09:55 PM   
No New Messages
TyphoonFr
Matrix Trooper


 

Posts: 138
Joined: 11/23/2017
From: FRA
Status: offline
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})



< Message edited by TyphoonFr -- 6/9/2018 1:10:40 PM >


_____________________________

Christophe

To all English teachers of the forum, sorry if English is not my mother language.

(in reply to Zaslon)
Post #: 2
RE: Set time to be ready with Lua? - 6/9/2018 2:31:33 PM   
No New Messages
Zaslon
Matrix Veteran


 

Posts: 283
Joined: 6/14/2015
Status: offline
Merci beaucoup Monsieur TyphoonFR.

_____________________________


Kids think about Iran and Amateurs think about Russia, but professionals think about China

(in reply to TyphoonFr)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Set time to be ready with Lua? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.234