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

  1. class ACTION_DestroyActor extends ScriptedAction;
  2.  
  3. var(Action)        name            DestroyTag;
  4.  
  5. function bool InitActionFor(ScriptedController C)
  6. {
  7.     local Actor a;
  8.  
  9.     if(DestroyTag != 'None')
  10.     {
  11.         ForEach C.AllActors(class'Actor', a, DestroyTag)
  12.         {
  13.             a.Destroy();
  14.         }
  15.     }
  16.  
  17.     return false;    
  18. }
  19.  
  20. function string GetActionString()
  21. {
  22.     return ActionString;
  23. }
  24.  
  25. defaultproperties
  26. {
  27.     ActionString="Destroy actor"
  28. }
  29.