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

  1. class ACTION_Freeze extends LatentScriptedAction;
  2.  
  3. function bool InitActionFor(ScriptedController C)
  4. {
  5.     if ( C.Pawn != None )
  6.     {
  7.         C.Pawn.bPhysicsAnimUpdate = false;
  8.         C.Pawn.StopAnimating();
  9.         C.Pawn.SetPhysics(PHYS_None);
  10.     }
  11.     C.CurrentAction = self;
  12.     return true;    
  13. }
  14.  
  15.  
  16. defaultproperties
  17. {
  18.     ActionString="Freeze"
  19. }