snkman 351 Posted July 27, 2009 Hey guys, someone knows a way to check, if a unit stand or knee? Is there any base class which i could check? I already tryed: if (animationState player == "AnimationName") then { do this }; Prone can be checked with the specific weapon class: Rifle "AmovPpneMstpSrasWrflDnon" True if the player is prone with a rifle. Pistol "AmovPercMstpSrasWpstDnon" True if the player is prone with a pistol. But i can'f find the correct animation names for Stand and Knee. May somebody know's them. :) Share this post Link to post Share on other sites
Big Dawg KS 6 Posted July 27, 2009 The stance is indicated by the three leters following the P. Prone: Ppne Kneeling: Pknl Stand: Perc ex: "AmovPercMstpSrasWrflDnon" - Standing "AmovPknlMstpSrasWrflDnon" - Kneeling "AmovPpneMstpSrasWrflDnon" - Prone If you want to get what the unit's current stance is you can use this: _animState = animationState _unit; _animStateChars = toArray _animState; _animP = toString [_animStateChars select 5,_animStateChars select 6,_aniMStateChars select 7]; Which will return just those 3 letters in a string. Share this post Link to post Share on other sites
Taurus 20 Posted July 27, 2009 Big Dawg is fast! Anyways, here's a complete list http://community.bistudio.com/wiki/ArmA2:_Moves Share this post Link to post Share on other sites
Big Dawg KS 6 Posted July 27, 2009 (edited) Big Dawg is fast! :cool: I've pretty much memorized most of the animation names (or rather the naming convention, in which case it's easy to guess what any animation will be called). Edited July 27, 2009 by Big Dawg KS Share this post Link to post Share on other sites
snkman 351 Posted July 27, 2009 Many thanks Big Dawg and Taurus. Didn't notice thouse commands. :rolleyes: Well at least i got it working correctly. Thanks Guy's. Share this post Link to post Share on other sites
Bioz 1 Posted April 15, 2012 Sorry guys i'm really interesting in the unit stance but I cannot understand how it works.. where should I put those codes? Share this post Link to post Share on other sites
kremator 1065 Posted April 15, 2012 Almost three years later .... is this a record for digging up a dead thread ? Share this post Link to post Share on other sites
Bioz 1 Posted April 16, 2012 I just wanted to find out how to do that, that's all Share this post Link to post Share on other sites
Guest Posted April 16, 2012 In the init of your unit. Please do not dig up old and inactive threads, specially not if the thread itself has nothing to do with your question. There must be more than enough threads how to make a unit perform an animation. This thread was started to check which animation was performed. §10) Do not dig up old threadsThreads older than 4 months should not be dug up unless something significant is being added. If in doubt as to what is "significant", contact a moderator and they will give you their opinion. As always old threads will remain open or be closed at the moderator's discretion. Digging up an old thread simply to ask "any news" is also not acceptable, PM the thread starter or mod leader to ask. ** locked Share this post Link to post Share on other sites