(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:
This is what it says in the wiki:
void 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