hestia-rsps / hestia

An open-source Kotlin game server.
BSD 3-Clause "New" or "Revised" License
16 stars 4 forks source link

Npc interest #105

Open GregHib opened 4 years ago

GregHib commented 4 years ago

A mob watches a player while the player is interacting with them. If the player walks away (seems to be twice the interact distance?) the mob should stops watching the player.

GregHib commented 4 years ago

Subscribe to player movement, compare with valid targets ids (npcs with watching). If is target and exceeds distance then remove as target.