Lucky44 13 Posted December 29, 2012 (edited) I've searched high and low and can't find anything on this. I'm trying to make sure that a player who's performing a certain Action (via an addAction that puts the player into a Move animation) can't walk away in the middle of the animation. I thought the player was locked out of control of movement like that, but apparently not. Is there a way to make sure the player must stay put through the duration of the animation/Move? EDIT: OK, more tests are needed. It seems to lock the player into the animation automatically now. I am going to have to figure out what happened on the other time I tested it and it let me move. I'll get back about this. Edited December 29, 2012 by Lucky44 Share this post Link to post Share on other sites
eagledude4 3 Posted December 29, 2012 while {animationstate player == YOUR ANIMATION} do { player enableSimulation false; } else { player enableSimulation true; }; not sure if you can have an else in a while loop, but give it a try Share this post Link to post Share on other sites
Mattar_Tharkari 10 Posted December 29, 2012 If you need the player to stay in one place have a loop in the script with a suitable condition e.g. the one above (not just true so it stops when you want it to): while {true} do { player setVelocity [0,0,0]; sleep 0.1; }; even pressing the movement keys will do nothing, he will stay in the same spot. Share this post Link to post Share on other sites
Lucky44 13 Posted December 29, 2012 Thanks, folks. Appreciated. I think the animation/move itself will disable the keyboard commands. I just haven't figured out why it didn't that one time I was testing it...probably just an anomalous bug. Share this post Link to post Share on other sites