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
[SOLVED IN 5 F**** MINUTS YA!!!]question...
Danny Boy Offline
Posting Freak

Posts: 2,718
Threads: 85
Joined: Mar 2011
Reputation: 81
#1
[SOLVED IN 5 F**** MINUTS YA!!!]question...

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?
(This post was last modified: 05-13-2011, 03:24 PM by Danny Boy.)
05-13-2011, 03:17 PM
Website Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: question...

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

05-13-2011, 03:21 PM
Website Find
Danny Boy Offline
Posting Freak

Posts: 2,718
Threads: 85
Joined: Mar 2011
Reputation: 81
#3
RE: question...

Ah! thank you very much Big Grin thats was i what i was needing!
05-13-2011, 03:23 PM
Website Find




Users browsing this thread: 1 Guest(s)