What's the most CPU economical for location "fence"
What is the most CPU friendly way to setup a location radius fence? I want to do something when a player comes within a certain radius of an in-world object or location. I know I can use OnUpdate, but that should be avoided if possible right? So . . . is there another way? If not, what is the best way to throttle OnUpdate so its not too intensive?
TIA |
Quote:
Lua Code:
And then use Lua Code:
to set the handler, setting it in xml at least doesn't work for me. The second argument on BufferReached() sets the interval. |
Or EVENT_MANAGER:RegisterForUpdate("uniqueTag", intervalInMilliseconds, function(gameTimeMs) ... end)
|
Quote:
|
All times are GMT -6. The time now is 11:15 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI