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
Checking if the player is NOT inside an area?
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#4
RE: Checking if the player is NOT inside an area?

(04-12-2012, 06:22 PM)ClayPigeon Wrote: About the first one, I think it won't work as for the fact that if the player does not collide with that area in the first place, the Collide callback won't even be called and the variable won't be set or modified.

I'll check out them both when I'll be able to though, thanks!
Yeah, I forgot to say that I put a SetLocalVarInt("", -1); in OnStart() {} just to initiate it to the -1 state.
If you have a look in the code in the spoiler I put it there, I just forgot to say. It will work if you include that, and the second one should work too, I usually do it the first way just because I'm more familiar with the AddEntityCollideCallback, but if the other way works I might start using that way myself


(This post was last modified: 04-12-2012, 06:30 PM by DRedshot.)
04-12-2012, 06:29 PM
Find


Messages In This Thread
RE: Checking if the player is NOT inside an area? - by DRedshot - 04-12-2012, 06:29 PM



Users browsing this thread: 2 Guest(s)