Posts: 551
Threads: 122
Joined: Nov 2009
Reputation:
0
Okay, I am working on a script and I've always kinda had this question. If I'm looking to see if a player comes within a range of a point would it be more efficient to set a timer with a custom call back, or use OnPlayerUpdate?
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
Im no expert but im pretty sure a timer would be more efficient than onplayerupdate.
onplayerupdate is called many times per second the script would also check if a player is in range of point many times per second even if he/she is not in range of point.
Posts: 231
Threads: 1
Joined: Sep 2009
Reputation:
0
Use OnPlayerEnterDynamicArea from Incognito's streamer plugin.