Jump to content
Sign in to follow this  
LostS77

Check if player is knocked out in water

Recommended Posts

Does anyone know of a script that will check if a player is knocked out and in water? Then if they are knocked out and in water, instead of sinking to the bottom they get teleported to the closest shore? Had someone pass out in a boat, and well landed under water but no one could get them to fix them up.

So any idea/suggestions would be great.

Share this post


Link to post
Share on other sites

ArmA 2 uses predefined animations. You can use this to your advantage. Ie when the swimming animation is initiated then add a trigger or make a script to check for it and do a proper action if detected.

1. Player moves.

2. Swimming animation.

3. Trigger/script detects it.

4. Proper action made (Teleportation?)

Try Animation Viewer (You can get it on Armaholic) to find the swimming animation.

Share this post


Link to post
Share on other sites
ArmA 2 uses predefined animations. You can use this to your advantage. Ie when the swimming animation is initiated then add a trigger or make a script to check for it and do a proper action if detected.

i think in this case he would want to check for the passed out animation not the swimming animation.

Had someone pass out in a boat

passing out is not really an arma 2 feature so what are you talking about? ACE? firstAid modules? other mods?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×