Grabbing a follower's X/Y position.

Looking for a way to grab a follower's current location and record it to a pair of variables, just like you could for any other event.
I'd think there would probably be a script command you could use for that, right?
The script call would be:


var index = index; // Index of the follower. First follower is 0, second follower is 1 etc.
$gameVariables.setValue(varId1, $gamePlayer._followers.follower(index).x);
$gameVariables.setValue(varId2, $gamePlayer._followers.follower(index).y);


Replace the text in red with the appropriate values.
Thank you so much.

Original thread: https://forums.rpgmakerweb.com/threads/grabbing-a-followers-x-y-position.81693/