Search found 6 matches

by acowman2
Sun May 24, 2026 1:23 am
Forum: Lua Legion
Topic: Setting starttime and endtime for a mission
Replies: 3
Views: 373

Re: Setting starttime and endtime for a mission

Also this block of lua used to work:

local activate_time = os.date('%c', ScenEdit_CurrentTime() + (60 * 5));
ScenEdit_SetTrigger({ description = 'TIMER_DELAY_START', mode = 'add', type = 'Time', time = activate_time });
ScenEdit_SetEventTrigger('EVENT_DELAY_START', { mode = 'add', description ...
by acowman2
Sun May 24, 2026 1:03 am
Forum: Lua Legion
Topic: Setting starttime and endtime for a mission
Replies: 3
Views: 373

Setting starttime and endtime for a mission

I've noticed something has changed with how dates are being handled. This line of lua used to work before the previous update:

ScenEdit_SetMission('RUSSIA', 'PHASE1 - SEAD', { isactive = false, starttime = '08/29/2024 00:00:01' });

The starttime now no longer gets set properly.
I checked the ...
by acowman2
Sun Oct 26, 2025 3:24 am
Forum: Tech Support
Topic: SSC-5 Stooge is missing WRA for mobile units
Replies: 2
Views: 469

SSC-5 Stooge is missing WRA for mobile units

unit database_id = 1894.

DoctrineWRA does not include mobile units even though the unit will fire upon mobile units.
by acowman2
Sat Nov 23, 2024 1:51 am
Forum: Lua Legion
Topic: Setting a units EMCON via LUA
Replies: 1
Views: 487

Re: Setting a units EMCON via LUA

I should also mention that the above code is ran in an event script with a timer as a trigger. When I run it in the actual lua script console, the output is the unit is created with radar on, but the "obey emcon" box is also checked (that's not a big deal but i need it to work with a timer as a ...
by acowman2
Sat Nov 23, 2024 1:20 am
Forum: Lua Legion
Topic: Setting a units EMCON via LUA
Replies: 1
Views: 487

Setting a units EMCON via LUA

Hi,

I've been trying to set a units emcon via lua in a scenario i'm working on. Here is the code I'm trying to use:

local c1_units = {
{ name='S-400 C1 #1', dbid=1668, latitude=45.2357921846878, longitude=33.2507438292646, set_emcon='y', emcon='radar=active' }
};

for i=1, #c1_units, 1 do ...

Go to advanced search