// 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. class ACTION_WaitForRandomTimer extends LatentScriptedAction; var(Action) float MinTime; var(Action) float MaxTime; function bool InitActionFor(ScriptedController C) { local float Interval; local float Time; Interval = MaxTime - MinTime; Time = Rand(Interval) + MinTime; C.CurrentAction = self; C.SetTimer(Time, false); return true; } function bool CompleteWhenTriggered() { return true; } function bool CompleteWhenTimer() { return true; } function string GetActionString() { return ActionString@MinTime@MaxTime; } defaultproperties { ActionString="Wait for random timer" }