Alright this one's kind of a generic request on how to set up an event I'm trying to script. All the ways that I have tried to approach it haven't worked so far...
The player is approaching from the right, past the barricaded doorway. As soon as he enters the intersection, an enemy comes charging at him from the adjacent hallway. Before he can react, it hits him, and blasts him through the barricade and into the blocked-off hallway.
So far I've got most of the script laid out. I got the PlayerBodyForce to trigger at the instant the player takes damage. However, throwing the player through the barricade is proving more challenging.
If the player only barely enters the area and stops when he gets attacked, he just hits the doorframe and falls down. I tried to solve this by making the ScriptArea more narrow, but then the player can sneak past it without ever triggering the enemy. I also tried teleporting the player to a spot directly in front of the barricade before he receives the body force, but the change in the camera is very obvious.
Anyone have some helpful advice? :/