jessehmusic
Senior Member
Posts: 423
Threads: 102
Joined: Dec 2011
Reputation:
8
|
Cant Remember the script! :O
Hello Im at a Force Player Look at script and cant remember at all :O
was a while ago i did this :/ this is my script atm
void OnStart()
{
SetEntityPlayerInteractCallback("Note_Test1", "Horro1", true;
}
void MyFunc(string &in asEntity)
{
SetEntityActive("force_look_at_dude", true);
PlaySoundAtEntity("force_look_at_dude", "24_iron_maiden", "Player", 0, true);
(FOOOORCEEE PLAAYER LOOK ATT "FORCE_LOOK_AT_DUDE" )
}
|
|
02-21-2012, 06:10 PM |
|
Juby
Senior Member
Posts: 290
Threads: 2
Joined: May 2011
Reputation:
5
|
RE: Cant Remember the script! :O
To force a player to look at something:
StartPlayerLookAt("EntityNameHere", speed, max speed, "LookAtCallback");
Ex: StartPlayerLookAt("Grunt", 3, 3, "LookedAtGrunt");
Know that you'll need to use StopPlayerLookAt(); when you want the player to stop looking at something.
Insanity. Static.
(This post was last modified: 02-21-2012, 06:31 PM by Juby.)
|
|
02-21-2012, 06:31 PM |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
RE: Cant Remember the script! :O
|
|
02-21-2012, 06:33 PM |
|