// // CPT operator / SondeerGame // This source file is (c) by Deltares. // - October 2014 // // ==================================================================== /// jln - 12-09-2008 Relocate an actor to a new location. // ==================================================================== class ACTION_RelocateActor extends ScriptedAction PerObjectConfig; var(Action) Actor ObjectToMove; /// Either use coordinates: var(Action) Vector NewLocation; /// Or a dummy as target: var(Action) Actor DummyLocation; function bool InitActionFor(ScriptedController C) { /// Relocate object: if (DummyLocation != None) { ObjecttoMove.SetLocation(DummyLocation.Location); } else { /// Use coords: ObjectToMove.SetLocation(NewLocation); } return false; } function string GetActionString() { return "ACTION_RelocateActor"@ObjectToMove; } defaultproperties { }