Delete an event (Full Version)

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



Message


TyphoonFr -> Delete an event (7/10/2018 10:40:44 AM)

Hello
How can we delete an Event, 'Remove' does not work
http://commandlua.github.io/beta/index.html#EventUpdate



10/07/2018 12:22:23 -- B998.9 --
Console:
ScenEdit_SetEvent("Event", {mode="remove"})
...
Function:ScenEdit_SetEvent (0) Error:Unknown operation!
ScenEdit_SetEvent 0 : ,Unknown operation!




michaelm75au -> RE: Delete an event (7/10/2018 12:15:01 PM)

I only have 'add' and 'update' defined for events.
You can remove trigger, condition and action, but I didn't allow that on events due to issues around having to 'undo' any assigned elements in the event.

If there is a need for it, we can revisit, but I don't see any real game reason for cleaning up empty events.




TyphoonFr -> RE: Delete an event (7/10/2018 1:19:29 PM)

In 'Dynamic Pilot Ejection And SAR Rescue', Angster uses it, thinking it works.

With every lost plane, he creates a new Event.
once the pilot is recovered or lost, it removes triggers, actions and events:

-- Create Event For Destruction
ScenEdit_SetEvent("Event - Cancel Pilot"..downedPilot.guid, {mode="add",IsRepeatable=0})
local cancelEvent = ScenEdit_GetEvent("Event - Cancel Pilot"..downedPilot.guid)
SetLongKeyValuePairs(cancelEvent.guid,downedPilot.guid)
 
-- Remove Actual Event
   ScenEdit_SetEvent ("Event - Cancel Pilot" .. keyGUID, {mode = "remove"})


Gunner 98 took the same functions for his IOF # 4 scenario The Gate of Tears.

I want to use it too, I'm going to modify not to create all those Events that we can not delete, and to make the Triggers and Actions create in one and only Repeatable Event.

Thanks,




michaelm75au -> RE: Delete an event (7/11/2018 10:35:08 AM)

Okay. I'll have a look at what I can do about it.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.195313