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
Affecting Real-Life Sanity
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#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




Users browsing this thread: 1 Guest(s)