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

  1. class ACTION_SetPhysics extends ScriptedAction;
  2.  
  3. var(Action) Actor.EPhysics NewPhysicsMode;
  4.  
  5. function bool InitActionFor(ScriptedController C)
  6. {
  7.     C.GetInstigator().SetPhysics(NewPhysicsMode);
  8.     return false;    
  9. }
  10.  
  11. function string GetActionString()
  12. {
  13.     return ActionString@NewPhysicsMode;
  14. }
  15.  
  16. defaultproperties
  17. {
  18.     ActionString="change physics to "
  19. }