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