The _refPoint x- and y-coordinates are modified without taking the players direction into account, when checking for suitable positions. (line 352 to 357)
There also seems to be a copypaste error in line 350 where the selectionPosition of "LeftHand" is assigned to _rh.
Example of the _refPoint positions, when the player is facing east
The _refPoint x- and y-coordinates are modified without taking the players direction into account, when checking for suitable positions. (line 352 to 357)
There also seems to be a copypaste error in line 350 where the selectionPosition of "LeftHand" is assigned to _rh.
Example of the _refPoint positions, when the player is facing east