I'm creating a bed which the player can sleep on. It is set up with two markers (one beside the bed and one on top), and a mouse click trigger to run an Action that looks like this:
(The "Change Player IsControllable" just sets it to false, but the behavior is the same regardless of whether it is present or not).
I also have a custom character state called "Sleeping", which is just a Simple CharacterState with an entry, an idle and an exit animation.
Now this code... Works. Mostly. Except that the animation results in the player lying sideways across the bed in a very impractical manner. ;)
My thought here was simply to check "Rotate" on in the "Teleport Player to M - On Bed" line item, which would make the player align correctly. However, whenever I turn this on, regardless of the actual rotation of the Marker, the character immediately and rapidly slides off the bed, along the ground, and right off the edge of the map.
I've tried turning off IK flags. I've tried changing the rotation of the bed and both markers. I've tried raising the marker, in case it was something to do with collisions. I've tried moving the teleport step before the change state, and after it. The behaviour remains the same in all cases. The character lies down sideways if I don't rotate, and slides off into the ether if I do rotate.
I have no idea what's going wrong here, or how to fix it.
Customer support service by UserEcho