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
How do I make the player look at a certain spot?
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: How do I make the player look at a certain spot?

PHP Code: (Select All)
StartPlayerLookAt(stringasEntityNamefloat afSpeedMulfloat afMaxSpeedstringasAtTargetCallback); 

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

Just place a ScriptArea where you want the player to look, and call that the asEntityName part.

You need to put a StopPlayerLookAt(); somewhere as well, otherwise, the player will remain focused on that Smile

Discord: Romulator#0001
[Image: 3f6f01a904.png]
04-13-2014, 06:45 PM
Find


Messages In This Thread
RE: How do I make the player look at a certain spot? - by Romulator - 04-13-2014, 06:45 PM



Users browsing this thread: 1 Guest(s)