Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Delete an event

 
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 >> Delete an event Page: [1]
Login
Message << Older Topic   Newer Topic >>
Delete an event - 7/10/2018 10:40:44 AM   
TyphoonFr

 

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


_____________________________

Christophe

To all English teachers of the forum, sorry if English is not my mother language.
Post #: 1
RE: Delete an event - 7/10/2018 12:15:01 PM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
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.

_____________________________

Michael

(in reply to TyphoonFr)
Post #: 2
RE: Delete an event - 7/10/2018 1:19:29 PM   
TyphoonFr

 

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

< Message edited by TyphoonFr -- 7/10/2018 2:29:49 PM >


_____________________________

Christophe

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

(in reply to michaelm75au)
Post #: 3
RE: Delete an event - 7/11/2018 10:35:08 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
Okay. I'll have a look at what I can do about it.

_____________________________

Michael

(in reply to TyphoonFr)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Delete an event 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.922