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
Grabbable feather
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#3
RE: Entity disappearing when you look away + grabbable feather

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

So in the function called, do I put an "if(alState == -1)" in there? Or is it too late, with the function exectued as soon as you look at it and not able to do anything else?


03-29-2012, 09:48 PM
Find


Messages In This Thread
Grabbable feather - by Damascus - 03-29-2012, 07:53 PM
RE: Entity disappearing when you look away + grabbable feather - by Damascus - 03-29-2012, 09:48 PM
RE: Grabbable feather - by Damascus - 03-30-2012, 12:07 AM



Users browsing this thread: 1 Guest(s)