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
Script Help Checking if player is inside of a script area
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#2
RE: Checking if player is inside of a script area

I'm not too sure such a thing exists.
But you can work your way around this:
Make two AddEntityCollideCallbacks, both with the same area and the player- one callback on enter and one on leave, each one will set a variable (SetLocalVarInt) to a different number.
Then you check (if function) the variable when it is needed.

Depending on what you want to achieve after checking whether the player is in the area, you might want to use looping timers afterwards if it is needed.

(This post was last modified: 09-05-2016, 05:49 PM by Darkfire.)
09-05-2016, 05:45 PM
Find


Messages In This Thread
RE: Checking if player is inside of a script area - by Darkfire - 09-05-2016, 05:45 PM



Users browsing this thread: 1 Guest(s)