MissingAFew
06-04-2015, 12:02 PM
Right now I have something like:
Walk = vizact.walkTo(self.MoveToLocation, self.Speed, 300, turnInPlace=True)
yield viztask.addAction( self.Avatar.AvatarModel, Walk )
I would like to be able to have the avatar stop moving, then resume moving, under certain circumstances. However I cant figure out a good way to accomplish this. I've tried Walk.actionclass.finished() and Walk.actionclass.pause but they don't seem to work. Nothing in particular in the documentation seems to stand out as an easy way to do this, but I may have missed something or used it incorrectly. If anyone knows a good way to handle it, I'd love some feedback. I would prefer to avoid having to write my own movement class if possible, but I realize this may not be avoidable.
Walk = vizact.walkTo(self.MoveToLocation, self.Speed, 300, turnInPlace=True)
yield viztask.addAction( self.Avatar.AvatarModel, Walk )
I would like to be able to have the avatar stop moving, then resume moving, under certain circumstances. However I cant figure out a good way to accomplish this. I've tried Walk.actionclass.finished() and Walk.actionclass.pause but they don't seem to work. Nothing in particular in the documentation seems to stand out as an easy way to do this, but I may have missed something or used it incorrectly. If anyone knows a good way to handle it, I'd love some feedback. I would prefer to avoid having to write my own movement class if possible, but I realize this may not be avoidable.