// 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. //============================================================================= // Object that contains a list of actors // // ------------------------------------------------------------ // Created by Rui Guimaraes // © 2006, Geodelft //============================================================================= class GraphicalActors extends Actor editinlinenew; // var() export editinline array GraphActor; var(GraphicalActors) array GraphActor; var array > subActorClasses; //var array subActorClasses; var(GraphicalActors) bool bForceSameLocation; event postBeginPlay() { SameLocation(); } function SameLocation() { local int ArraySize; local int i; ArraySize = subActorClasses.Length; for(i=0; i < ArraySize; i++) { GraphActor[i] = spawn(subActorClasses[i]); GraphActor[i].SetLocation(Location); GraphActor[i].SetRotation(Rotation); } } function SetVisible() { local int ArraySize; local int i; self.SetLocation(vect(-10000,-10000,-10000)); self.bHidden = true; self.SetDrawType(DT_None); ArraySize = GraphActor.Length; if(bForceSameLocation) { for(i=0; i < ArraySize; i++) { GraphActor[i].bHidden=false; } } } function SetInVisible() { local int ArraySize; local int i; self.SetLocation(vect(-10000,-10000,-10000)); self.bHidden = true; self.SetDrawType(DT_None); ArraySize = GraphActor.Length; // Log("Hiding length: " @ GraphActor.Length); for(i=0; i < ArraySize; i++) { if (GraphActor[i].bLockLocation == false) { // Log("Hiding: " @ GraphActor[i] @ " " @ GraphActor[i].StaticMesh @ " " @ GraphActor[i].Name); GraphActor[i].bHidden=true; GraphActor[i].bBlockActors=false; //GraphActor[i].bBlockKarma=false; GraphActor[i].bBlockNonZeroExtentTraces=false; GraphActor[i].bBlockPlayers=false; GraphActor[i].bBlockZeroExtentTraces=false; //GraphActor[i].bCollideActors=false; GraphActor[i].bCollideWorld=false; } } } defaultproperties { bHidden=true bForceSameLocation=false // DrawType=DT_None }