![]() |
Interact scare help. - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Interact scare help. (/thread-7043.html) |
Interact scare help. - Itskody - 03-25-2011 How do i make it so that when my guy opens a cabinet and sees whats in it he gets scared? RE: Interact scare help. - Pandemoneus - 03-25-2011 Use the search function, 'scare' has been asked often enough. -> http://www.frictionalgames.com/forum/search.php RE: Interact scare help. - Itskody - 03-25-2011 (03-25-2011, 01:37 AM)Pandemoneus Wrote: Use the search function, 'scare' has been asked often enough. I cant find anything RE: Interact scare help. - MrBigzy - 03-25-2011 You would use the script function: SetEntityPlayerLookAtCallback(string& asName, string& asCallback, bool abRemoveWhenLookedAt); The syntax for the function it calls is: MyFunc(string &in entity, int alState) state: 1=looking, -1=not looking You'd then put whatever you want him to do in that function. RE: Interact scare help. - Itskody - 03-25-2011 Thanks Very much (03-25-2011, 05:29 AM)MrBigzy Wrote: You would use the script function: SetEntityPlayerLookAtCallback(string& asName, string& asCallback, bool abRemoveWhenLookedAt); How do i do that, where do i put them on my script? both on the OnStart or what? AND do i need to add a script to my level for it to work? |