Search the Community
Showing results for tags 'free falling'.
Found 1 result
-
Detect when not Free falling/Parachuting and Force close Arsenal
sgtelis posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
What I want: So I'm making a mission where you start of by entering Arsenal. While you are in arsenal a timer ticks down and when it gets to 0 you get teleported away into the air. Before this happens I want the players to be forced out of arsenal so that they don't start free falling with arsenal open or (due to the fact that they should not take any damage until they have landed) can fidle with the arsenal while the mission is playing. When teleported into the air I want the player to not be killable. Once the player lands (either faceplant into the ground or by landing with a parachute) the player should then be able to take damage. What I got: All players get forced into arsenal in the begining and there is a timer ticking down. If you exit the arsenal you get a black screen telling you that the game is still preparing and that you can re-enter the arsenal with a button click. Once the timer runs out the players get teleported and enters free fall where he/she has access to a parachute. What I've tried: For forcing out of arsenal? Nothing cuz I can't find anything else than adding arsenal on google. For detecting if landed: getPos of player in Z axis, and it worked, unless you land on a roof. detect stances such as prone, crouch or standing. Did not work and got called while free falling. some weird hasLanded thing that most likely is only for helis/planes So again, what do I need help with: A way to detect if a player has landed, aka stopped freefalling and is not parachuting. A way to force the player out of the Arsenal.