Frictional Games Forum (read-only)
[SCRIPT] Cant Remember the script! :O - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Cant Remember the script! :O (/thread-13489.html)



Cant Remember the script! :O - jessehmusic - 02-21-2012

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" )
}


RE: Cant Remember the script! :O - Juby - 02-21-2012

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.


RE: Cant Remember the script! :O - Your Computer - 02-21-2012

Bookmark: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions