Detect STOP_MOVEMENT of other users

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

User avatar
frcol
Posts: 99
Joined: 22 Aug 2010, 09:26
Location: Brazil
Contact:

Detect STOP_MOVEMENT of other users

Postby frcol » 08 Jun 2015, 13:49

Is there a way to detect that someone in the room stopped in a specific tile (with TriggerType.AVATAR_STOP) in the server side (extension) or client side (Flash)? We are using OpenSpace.
In fact, we need to know if a NPC stopped ina specific tile.

thanks
Fabio Colombini
Brazil
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Detect STOP_MOVEMENT of other users

Postby Bax » 09 Jun 2015, 08:13

On the client side, you can make the AvatarEvent.STOP_MOVEMENT being fired by all the avatars stopping on a tile with an AVATAR_STOP trigger assigned. Just make sure the trigger has the "all avatars" property set to true.
On the server side I don't think this is possible. You could monitor the User Variables to know the position, but they are set immediately to the target tile (where the avatar will stop at the end of the path), so you don't know when the NPC will be there exactly.
Paolo Bax
The SmartFoxServer Team

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 57 guests