Page 1 of 1

Detect STOP_MOVEMENT of other users

Posted: 08 Jun 2015, 13:49
by frcol
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

Re: Detect STOP_MOVEMENT of other users

Posted: 09 Jun 2015, 08:13
by Bax
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.