Frictional Games Forum (read-only)

Full Version: [SOLVED IN 5 F**** MINUTS YA!!!]question...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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
Ah! thank you very much Big Grin thats was i what i was needing!