Get followers to turn, not just player

You know the situation, the player plus followers arrive somewhere, something happens and you set the move route so that the player e.g. turns right.  The followers, however, could be facing in any direction, depending on the path taken to get to this point.


Is there a way, maybe a script call, which allows me to say party member x turn right?


Thanks.
$game_player.followers[x].set_direction(4)


where x is the follower index - the first follower will be 0.


If you want ALL followers to do it, this would work:


$game_player.followers.each {|follower| follower.set_direction(4)}


It's easy if you only want them to take one action.  If you want them to take several, you'd need to set up a move route and apply it to them.  I wrote a tutorial on setting up move routes via scripts.


It might be worth checking out Galv's Move Route Extras - he might have something in there that allows you apply a move route to a follower.
@Shaz


I've now had the chance to test this, and I've hit problems.  I made sure to copy/paste your script call so that there would be no typos.  Here is my event.


Direction test.png


With direction (1) the followers vanish


With directions (2) and (3) the followers face down


With direction (4) the followers look left.


I disabled Galv's Route Move Extras script (which sadly does not deal with followers) in case it conflicted, but the results were the same.


I then tried it in a new, default game and still got the same results.
The numbers & directions correspond to the keys on your number pad.  2 = down, 4 = left, 6 = right, 8 = up.  
@Shaz Oops!  Now (of course) works perfectly.


Thank you.


Closing as solved.

Original thread: https://forums.rpgmakerweb.com/threads/get-followers-to-turn-not-just-player.72454/