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
Script Help Cant Remember the script! :O
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#1
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" )
}

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
02-21-2012, 06:10 PM
Website Find
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#2
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
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#3
RE: Cant Remember the script! :O

Bookmark: http://wiki.frictionalgames.com/hpl2/amn..._functions

Tutorials: From Noob to Pro
02-21-2012, 06:33 PM
Website Find




Users browsing this thread: 3 Guest(s)