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]Now I see you... Oh wait a minute, I don't
Tottel Offline
Senior Member

Posts: 307
Threads: 9
Joined: Nov 2010
Reputation: 0
#3
RE: Now I see you... Oh wait a minute, I don't

I'm guessing

void SetEntityActive(string& asName, bool abActive);

In combination with an area which is triggered when you have looked at it, and then look away again.

I haven't done this before, but you can probably use this then:

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

I haven't used this Callback before; what I would do is make a new variable that adds one when you look at the object. When you look away, it adds another one.
Make a check if the variable is 2. If so, SetEntityActive();

But there's probably a simpler method with that callback. Feel free to experiment. Smile
01-26-2011, 12:59 AM
Find


Messages In This Thread
RE: Now I see you... Oh wait a minute, I don't - by Tottel - 01-26-2011, 12:59 AM



Users browsing this thread: 1 Guest(s)