Efficiency
#1

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?
Reply
#2

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.
Reply
#3

Use OnPlayerEnterDynamicArea from Incognito's streamer plugin.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)