Jump to content
Sign in to follow this  
thetrooper

check if unit sitting down

Recommended Posts

Is there a way I can set a trigger, and in it check a condition if 'Soldier1 is sitting'?

Share this post


Link to post
Share on other sites

generally -

condition:- animatestate unit == "AmovPsitMstpSlowWrflDnon"; - but for some reason the sitdown animation is not detected. works for prone, standing, saluting, but i cant find the sitting animation.

Share this post


Link to post
Share on other sites
generally -

condition:- animatestate unit == "AmovPsitMstpSlowWrflDnon"; - but for some reason the sitdown animation is not detected. works for prone, standing, saluting, but i cant find the sitting animation.

There are differences in the animation names if have an assault rifle or a pistol or no weapon... and so on... so in this way you have to find out all possible sitting animation names first... ;)

Share this post


Link to post
Share on other sites

Unfortunately i tried all of them - none worked :( - even the smoking ones lol. Strange.

Share this post


Link to post
Share on other sites

Which is why animation state isn't a good way of doing it. Provided soldier1 isn't in a vehicle, the thread pelham linked has the best solution where I get the altitude of the players neck.

http://forums.bistudio.com/showthread.php?112513-Polling-a-unit-s-stance&p=1989245&viewfull=1#post1989245

Share this post


Link to post
Share on other sites

_sitting = 0;
if (animationState _unit in ["amovpsitmstpsnonwpstdnon_ground","amovpsitmstpslowwrfldnon","amovpsitmstpsnonwnondnon_ground"]) then {_sitting = 1};

At least in Arma III this works perfectly to check reliably whether a unit is really sitting down on the ground on his ass. It "returns" a sitting position with a (holstered) pistol, a rifle and no weapon at all.

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  

×