I'm in the process of creating an event where player is trapped within walls, which move. If he stays in the room for too long, and doesn't figure out how to escape, the walls eventually crush him, insta-killing him. I haven't however been able to think on how to actually move the walls towards the player. In Justine, a
void SetMoveObjectStateExt(string& asName, float afState, float afAcc, float afMaxSpeed, float afSlowdownDist, bool abResetSpeed);
function is used, though there's no such thing as X, Y or Z axis in this func as far as I see, unlike in the function used to rotate assets.
So my question is how do I force the walls to move towards the player?
To illustrate my problem I'm leaving a screenshot below.