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


Messages In This Thread
Affecting Real-Life Sanity - by DamnNoHtml - 07-05-2011, 10:51 PM
RE: Affecting Real-Life Sanity - by MrBigzy - 07-05-2011, 10:59 PM
RE: Affecting Real-Life Sanity - by MrCookieh - 07-05-2011, 11:00 PM
RE: Affecting Real-Life Sanity - by Roenlond - 07-06-2011, 10:45 AM
RE: Affecting Real-Life Sanity - by palistov - 07-06-2011, 12:07 PM
RE: Affecting Real-Life Sanity - by Synatic - 07-06-2011, 12:12 PM
RE: Affecting Real-Life Sanity - by DannieWest - 07-06-2011, 10:05 PM
RE: Affecting Real-Life Sanity - by MrCookieh - 07-06-2011, 10:21 PM
RE: Affecting Real-Life Sanity - by DamnNoHtml - 07-07-2011, 04:23 AM
RE: Affecting Real-Life Sanity - by DRedshot - 07-06-2011, 10:53 PM
RE: Affecting Real-Life Sanity - by Kurton - 07-08-2011, 05:49 AM
RE: Affecting Real-Life Sanity - by Kyle - 07-08-2011, 02:09 PM
RE: Affecting Real-Life Sanity - by Need4Power - 07-08-2011, 02:31 PM
RE: Affecting Real-Life Sanity - by DRedshot - 07-08-2011, 03:15 PM
RE: Affecting Real-Life Sanity - by SLAMnesia - 07-11-2011, 12:00 AM
RE: Affecting Real-Life Sanity - by Im_Sexy - 07-11-2011, 09:33 PM
RE: Affecting Real-Life Sanity - by Kyle - 07-11-2011, 09:54 PM
RE: Affecting Real-Life Sanity - by laser50 - 07-11-2011, 10:05 PM
RE: Affecting Real-Life Sanity - by Im_Sexy - 07-11-2011, 10:45 PM
RE: Affecting Real-Life Sanity - by Kyle - 07-12-2011, 02:52 PM
RE: Affecting Real-Life Sanity - by bigfoot - 07-12-2011, 10:17 AM



Users browsing this thread: 1 Guest(s)