How to make the NPC track an avatar?

Post here your questions about the OpenSpace 1.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
ddk2
Posts: 23
Joined: 16 Feb 2009, 06:56

How to make the NPC track an avatar?

Post by ddk2 »

Suppose we can control the NPC move in the map.
How can we control it to track an avatar? can we get the lastest coordinate of the target?

Thanks!
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

No. The avatar doesn't update its position continuously. Only the final position is saved (in the user variables), and the full path to get to that position is sent to the other clients directly.
Paolo Bax
The SmartFoxServer Team
Post Reply