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,
|
|
|
|