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
LookAt / NotLookAt
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#8
RE: LookAt / NotLookAt

I got it! Took some tinkering but you don't need ANY loop function you just need to not remove the callback when the player first looks at it! Here you go! Nice and simple! I'm so excited to have helped you SmileSmileSmile


void OnStart()
{
SetEntityPlayerLookAtCallback("item", "FuncDisappearInit", false);
}

void FuncDisappearInit(string &in entity, int alState)
{
if(alState == -1) SetEntityActive("item", false);
}
(This post was last modified: 04-03-2011, 06:27 AM by palistov.)
04-03-2011, 06:26 AM
Find


Messages In This Thread
LookAt / NotLookAt - by Anxt - 03-31-2011, 11:32 PM
RE: LookAt / NotLookAt - by Pandemoneus - 04-01-2011, 12:12 AM
RE: LookAt / NotLookAt - by Anxt - 04-01-2011, 12:22 AM
RE: LookAt / NotLookAt - by palistov - 04-01-2011, 11:24 PM
RE: LookAt / NotLookAt - by Pandemoneus - 04-02-2011, 12:01 AM
RE: LookAt / NotLookAt - by palistov - 04-02-2011, 03:13 AM
RE: LookAt / NotLookAt - by Anxt - 04-02-2011, 03:24 AM
RE: LookAt / NotLookAt - by palistov - 04-03-2011, 06:26 AM



Users browsing this thread: 2 Guest(s)