// September 2015 // Levee Patroller / Dijk Patrouille // This source file is (c) by Deltares. This source file is open source but only available to select users. Do not redistribute without written permission of Stichting Deltares, Delft, The Netherlands. // This header has been automatically generated. //============================================================================= // ACTION_TriggerEventOnce // // Action which triggers an event only once // // ---------------------------------------------------------------------------- // Created by Maarten van Zomeren // © 2007, Geodelft //============================================================================= // Date Id Modification // 2007-01-22 Zmr Created // // // // //============================================================================= class ACTION_TriggerEventOnce extends ScriptedAction; var(Action) name Eventn; var TriggerOnceActor TOA; var actor other; var pawn instigator; var name TOATag; //============================================================================= // Date Id Modification // 2007-01-22 Zmr Created // // // // //============================================================================= function bool InitActionFor(ScriptedController C) { // trigger event associated with action local actor a; if(TOA == none) { foreach c.AllActors(class'actor', a ) { if(TriggerOnceActor(a) != none) { TOA = TriggerOnceActor(a); break; } } } if(TOA == none) { TOA = c.spawn(class'TriggerOnceActor'); } other = C.SequenceScript; instigator = C.GetInstigator(); TOA.TriggerOnce(Eventn,other,instigator); return false; } function string GetActionString() { return ActionString@Eventn; } defaultproperties { ActionString="trigger event once" TOATag="IkBenEEnTriggerOnceActor2467533687" }