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

  1. class ACTION_TurnTowardPlayer extends LatentScriptedAction;
  2.  
  3. function bool InitActionFor(ScriptedController C)
  4. {
  5.     C.ScriptedFocus = C.GetMyPlayer();
  6.     C.CurrentAction = self;
  7.     return true;    
  8. }
  9. function bool TurnToGoal()
  10. {
  11.     return true;
  12. }
  13.  
  14. function Actor GetMoveTargetFor(ScriptedController C)
  15. {
  16.     return C.GetMyPlayer();
  17. }
  18.  
  19. defaultproperties
  20. {
  21.     ActionString="Turn toward player"
  22.     bValidForTrigger=false
  23. }
  24.