Turning Radars On?

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
User avatar
22sec
Posts: 1246
Joined: Sat Dec 11, 2004 4:09 pm
Location: Jackson, MS
Contact:

Turning Radars On?

Post by 22sec »

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?
Flashpoint Campaigns Contributor
https://twitter.com/22sec2
Rory Noonan
Posts: 2418
Joined: Thu Dec 18, 2014 1:53 am
Location: Brooklyn, NY

RE: Turning Radars On?

Post by Rory Noonan »

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
Image
User avatar
22sec
Posts: 1246
Joined: Sat Dec 11, 2004 4:09 pm
Location: Jackson, MS
Contact:

RE: Turning Radars On?

Post by 22sec »

Perfect! I’ve been trying to find as many good resources as possible.
Flashpoint Campaigns Contributor
https://twitter.com/22sec2
Post Reply

Return to “Lua Legion”