Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Affecting Real-Life Sanity
Author Message
Kyle Offline
Posting Freak

Posts: 910
Joined: Sep 2010
Reputation: 7
Post: #21
RE: Affecting Real-Life Sanity
(07-11-2011 10:45 PM)Im_Sexy Wrote:  Sorry to sound like a noob... but how do i do these above ^?

StartPlayerLookAt("ScriptArea_1", 2, 2, "");

You should change the parameters that say "ScriptArea_1" to the area in which you want the player to look at. Can also be used with any other active (existing) object. To stop it, use this:

StopPlayerLookAt();

This is what it says in the wiki:

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


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

07-12-2011 02:52 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)