Arma 3
Arma 3 Animation/Script - Revive Player After Injury
Hello, friends. I am making a mission where the player is lying on the ground injured in the beginning of the mission. The player must be able to stand up in a few seconds after this injury animation and then move slower and look for a med kit/first aid kid to heal himself. Would you give me a script and a step by step turorial where to put the script etc.? Thank you! :)
< >
Showing 1-8 of 8 comments
Here you go my dude. I tested this with a civilian unit and a blufor Ammo Bearer, Add the following to the init box of the unit.

[this, "PRONE_INJURED"] call BIS_fnc_ambientAnim; 0 = this spawn {waitUntil {time > 5}; _this call BIS_fnc_ambientAnim__terminate; _this switchMove "AinjPpneMstpSnonWnonDnon_rolltofront";_this playMove "AmovPknlMstpSnonWnonDnon"};

This sets the unit to the PRONE_INJURED ambient animation.
Waits until the time is above 5. You can change this to what you want in seconds, 0 = as soon as eveything is loaded in.
It then terminates the Animation and switches into the rolltofront animation while prone and adds the crouch animation to the animation queue.
Once the rolltofront animation has finished, it does the next animation in the queue which is to go to the crouched positon.

In the 3DEN editor, if you go to Tools -> Animation Viewer, you can change the animation to what you would like, As this is Arma... Not all of them will work or fit as you would like.

A great source of information on scripting is the BIS Wiki, https://community.bistudio.com/wiki/Category:Scripting_Commands_Arma_3
Thank you Ashley for being a helpfull contributor to the community.
@Ashley, thank you very much for the answer. It worked great for me, but the player is not injured/wounded. Is there a way to repeat the same combination of animations + add an additional script where the player is also wounded and needs first aid kit?
I definitely need my player in this kind of stance, but also want him to be injured, too, and then look for the medkit to heal himself.
Originally posted by Black_Hawk_BG_->_<-_X-Ray:
@Ashley, thank you very much for the answer. It worked great for me, but the player is not injured/wounded. Is there a way to repeat the same combination of animations + add an additional script where the player is also wounded and needs first aid kit?

Set the units health to 50%
Thank you, that has worked! :)
Originally posted by Black_Hawk_BG_->_<-_X-Ray:
Thank you, that has worked! :)

No Problem, I dont look at the discussions much. If you have any other questions add me and if i have time ill be able to help
It will be my pleasure to share some experience with each other. :)
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Mar 18, 2018 @ 2:41am
Posts: 8