I'm using Sfs Pro 1.6.9 with the latest OpenSpace.
I'm setting
Code: Select all
openSpace.addEventListener(AvatarEvent.START_MOVEMENT, onAvatarMovementStart);
openSpace.addEventListener(AvatarEvent.STOP_MOVEMENT, onAvatarMovementStop);
private function onAvatarMovementStart(evt:AvatarEvent):void
{
trace(" PLAYER AVATAR START MOVEMENT ")
}
private function onAvatarMovementStop(evt:AvatarEvent):void
{
trace(" PLAYER AVATAR STOP MOVEMENT ")
}
but the events aren't dispatched! All other avatar events i'm using are dispatched fine, but these 2 events for some reason don't dispatch.
Avatar moves like it should, and there aren't any errors.
Are these events bugged? Or am i missing something?
Another question, is it possible to catch the '_os_move' on server side?
EDIT: all this is for NPC movement, so when the user avatar starts moving, his assigned NPC follows him. If there's a better method i would appreciate the help.
Another question, is there a way to get the path the user avatar will follow? Cause the best place for a assigned NPC would be 'one step' behind his owner.
Thanks in advance.
TR