SphereCommunity
NPC turn rate - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: NPC turn rate (/Thread-NPC-turn-rate)

Pages: 1 2


RE: NPC turn rate - PePs1Man - 07-27-2017 01:39 PM

May I guide you to something ?

What about, if you predict player's movement, you will be able to counteract.

Well, if on your shard this is required to face your enemy in order to hit, you check the DIR attribute of the player and if the user has moved in the last second while being in close proximity of the NPC.

Using player's DIR, P.X and P.Y, with monster's DISTANCE, you can predict where the player will be if he continues to move.

This is only a theory...