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
Player reacting when looking at a area
Henriksen Offline
Senior Member

Posts: 308
Threads: 71
Joined: Dec 2010
Reputation: 2
#3
RE: Player reacting when looking at a area

(04-05-2011, 04:26 PM)Tanshaydar Wrote: There should be a PlayerLookAtCallback for entities. For areas...

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

I dont understand? Could you give me an example or is it something like:

void SetEntityPlayerLookAtCallback("AREA", "FUNCTION", true);
04-05-2011, 04:31 PM
Find


Messages In This Thread
RE: Player reacting when looking at a area - by Henriksen - 04-05-2011, 04:31 PM



Users browsing this thread: 1 Guest(s)