Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Turning Radars On?

 
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 >> Turning Radars On? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Turning Radars On? - 11/20/2019 11:31:25 PM   
22sec

 

Posts: 786
Joined: 12/11/2004
From: Jackson, MS
Status: online
I’m new to Lua, and want to start creating scenarios that take advantage of what the code allows. I’m still trying to figure a lot out. How would I write a script to have a task force turn its radar on once enemy units are detected?

_____________________________

Post #: 1
RE: Turning Radars On? - 11/21/2019 12:20:14 AM   
apache85

 

Posts: 1775
Joined: 12/18/2014
From: Melbourne, Australia
Status: offline
Use a 'unit detected' trigger in an event with a Lua script action that uses the ScenEdit_SetEMCON function (https://commandlua.github.io/#ScenEdit_SetEMCON)

If you haven't already read them, these two articles provide a foundation for getting comfortable with Lua in Command.

https://www.matrixgames.com/forums/tm.asp?m=4435326
https://www.matrixgames.com/forums/tm.asp?m=4445469

_____________________________


(in reply to 22sec)
Post #: 2
RE: Turning Radars On? - 11/21/2019 1:09:56 AM   
22sec

 

Posts: 786
Joined: 12/11/2004
From: Jackson, MS
Status: online
Perfect! I’ve been trying to find as many good resources as possible.

_____________________________


(in reply to apache85)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Turning Radars On? 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

0.137