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
Some Coding Questions
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#7
RE: Some Coding Questions

You're actually in luck!

void SetEntityPlayerLookAtCallback(string& asName, string& asCallback, bool abRemoveWhenLookedAt);



Quote:Calls a function when the player looks at a certain entity.

Callback syntax: void MyFunc(string &in asEntity, 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
Many people have already used this to produce certain neat effects on their own mods.

[Image: Tv0YgQb.gif]
Image by BandyGrass
(This post was last modified: 07-15-2013, 02:20 PM by Kreekakon.)
07-15-2013, 02:20 PM
Find


Messages In This Thread
Some Coding Questions - by Alex Ros - 07-09-2013, 05:14 PM
RE: Some Coding Questions - by Streetboat - 07-09-2013, 05:37 PM
RE: Some Coding Questions - by Adrianis - 07-10-2013, 05:21 PM
RE: Some Coding Questions - by DnALANGE - 07-10-2013, 07:00 PM
RE: Some Coding Questions - by The chaser - 07-10-2013, 07:11 PM
RE: Some Coding Questions - by Alex Ros - 07-10-2013, 07:53 PM
RE: Some Coding Questions - by Kreekakon - 07-15-2013, 02:20 PM
RE: Some Coding Questions - by Alex Ros - 07-15-2013, 02:26 PM



Users browsing this thread: 1 Guest(s)