SphereCommunity
Is Character Moving ? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Is Character Moving ? (/Thread-Is-Character-Moving)

Pages: 1 2


RE: Is Character Moving ? - EOSCPM - 04-07-2014 05:44 PM

(04-03-2014 12:58 AM)XuN Wrote:  This trigger was never implemented because it would be so heavy in performance meanings, it was placed under region definition to limit it usage (I think).

What you can do is:

Adding r_regions_custom to EventsRegion in your sphere.ini

create [regiontype r_regions_custom]
ON=@Step
src.say I'm moving

I used this login and working success. I can't see any decrease of performance.

Thank you XuN


RE: Is Character Moving ? - XuN - 04-07-2014 10:37 PM

You may not see it right now but add a couple of checks to this trigger and wait all npcs and players to fire it in each step they made in regions. Try to keep it small and clean.


RE: Is Character Moving ? - EOSCPM - 04-08-2014 11:06 PM

Yes i did like that. I have an another question , but will open new topic thank you again.