Hello,
This maybeIs there a way to stop an avatar that's walking from point A to point B "dead in it's tracks"?
My code untill now looks somewhat like this:
Code:
def walk1():
yield viztask.waitKeyDown( ' ' )
yield viztask.addAction(avatar, vizact.walkTo([pointA]))
yield viztask.addAction(avatar, vizact.walkTo([pointB]))
yield viztask.addAction(avatar, vizact.walkTo([pointC]))
avatar.state(14)
yield viztask.waitTime(10)
viztask.schedule(walk2())
def walk2():
yield viztask.waitKeyDown( ' ' )
yield viztask.addAction(avatar, vizact.walkTo([pointD]))
yield viztask.addAction(avatar, vizact.walkTo([pointE]))
avatar.state(14)
yield viztask.waitTime(10)
#main
viztask.schedule(walk1())
So during ANY of the walkto actions i want to be able to stop the avatar where he is, and let him perform some kind of action on that spot.