Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help New Problem: SetEntityPlayerLookAtCallback
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#3
RE: New Problem: SetEntityPlayerLookAtCallback

StartPlayerLookAt and StopPlayerLookAt();is the code you are looking for

StartPlayerLookAt(string& asEntityName, float afSpeedMul, float afMaxSpeed, string& asAtTargetCallback);


Forces the player to look at a certain entity until StopPlayerLookAt is used.




asEntityName - the entity to look at


afSpeedMul - how fast should the player look at the entity


afMaxSpeed - maximum speed allowed


asAtTargetCallback - function to call when player looks at target


03-14-2012, 02:21 PM
Find


Messages In This Thread
RE: New Problem: SetEntityPlayerLookAtCallback - by SilentStriker - 03-14-2012, 02:21 PM



Users browsing this thread: 1 Guest(s)