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

  1. class ACTION_FreezeOnAnimEnd extends Action_PLAYANIM;
  2.  
  3. function bool InitActionFor(ScriptedController C)
  4. {
  5.     C.CurrentAnimation = self;
  6.     return true;    
  7. }
  8.  
  9. function SetCurrentAnimationFor(ScriptedController C)
  10. {
  11.     C.CurrentAnimation = self;
  12. }
  13.  
  14. function bool PawnPlayBaseAnim(ScriptedController C, bool bFirstPlay)
  15. {
  16.     if ( C.Pawn != None )
  17.     {
  18.         C.Pawn.bPhysicsAnimUpdate = false;
  19.         C.Pawn.StopAnimating();
  20.         C.Pawn.SetPhysics(PHYS_None);
  21.     }
  22.     return true;
  23. }