I have my doubts, and I will galdly post them ;D
:
the question is, can you make somthing plausable out of this.
You really can't
At least not in a form a function, which would be the optimal way..
I mean, if someone has
gone prone like 56 minutes ago and you want to check whether he is still prone?
No can do with this method, not with the optimal way..
And still the crouched stance would be missing...
You can easily detect if a unit
goes/is going prone with this and I'm sure many have found out this in the past but realised it's not usable in any other way...
Basicly you would need a @ sqs loop, one for each stance running on one soldier, which means like 6 @ loops (9 is the crouch stance would be included) per soldier running
constantly (good bye MP with this method
), you do the maths when there are several groups going on the map...
standing_to_prone.sqs (pseudo code)
_unit = _this select 0
#detect
call format ["%1_isProne=%2",_unit,false]
publicVariable format ["%1",(call format ["%1_isProne",_unit])]
@(speed _unit)==2.26923
~.01
call format ["%1_isProne=%2",_unit,true]
publicVariable format ["%1",(call format ["%1_isProne",_unit])]
@(speed _unit)>0
goto "detect"