![]() |
[SOLVED IN 5 F**** MINUTS YA!!!]question... - 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: [SOLVED IN 5 F**** MINUTS YA!!!]question... (/thread-7971.html) |
[SOLVED IN 5 F**** MINUTS YA!!!]question... - Danny Boy - 05-13-2011 is it possible to make a sumthing happen like a crash sound to be played wend i look to a specific place like a painting for example? RE: question... - Tanshaydar - 05-13-2011 There is lookatcallback. void SetEntityPlayerLookAtCallback(string& asName, string& asCallback, bool abRemoveWhenLookedAt); Calls a function when the player looks at a certain entity. Callback syntax: void MyFunc(string &in entity, int alState) alState: 1 = looking, -1 = not looking asName - internal name asCallback - function to call abRemoveWhenLookedAt - determines whether the callback should be removed when the player looked at the entity RE: question... - Danny Boy - 05-13-2011 Ah! thank you very much ![]() |