home *** CD-ROM | disk | FTP | other *** search
/ Game Level Design / GLDesign.bin / Software / UnrealEngine2Runtime / UE2Runtime-22262001_Demo.exe / Gameplay / Classes / ACTION_SetHidden.uc < prev    next >
Text File  |  2003-12-11  |  359b  |  17 lines

  1. class ACTION_SetHidden extends ScriptedAction;
  2.  
  3. var(Action) bool bHidden;
  4. var(Action) name HideActorTag;
  5.  
  6. function bool InitActionFor(ScriptedController C)
  7. {
  8.     local Actor A;
  9.     if ( HideActorTag != '' )
  10.     {
  11.         ForEach C.AllActors(class'Actor',A,HideActorTag)
  12.             A.bHidden = bHidden;
  13.     }
  14.     else
  15.     C.GetInstigator().bHidden = bHidden;
  16.     return false;    
  17. }