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?
ClayPigeon Offline
Member

Posts: 214
Threads: 13
Joined: Mar 2012
Reputation: 8
#5
RE: Checking if the player is NOT inside an area?

(04-12-2012, 06:29 PM)DRedshot Wrote:
(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
Oh I haven't noticed the part on OnStart, silly me!
I'll check the second method for you mate Smile
Thanks for the help!
04-12-2012, 06:55 PM
Find


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



Users browsing this thread: 1 Guest(s)