Jump to content

Sign in to follow this  
Ilias38rus

Force player stay prone , keep , state , position rules.

Recommended Posts

  On 1/16/2016 at 11:51 PM, shuko said:

I doubt that's possible.

Then how it is in AIS?

---------------------------

Oh, sorry it isn't there, but it shood be possible somehow.

Share this post


Link to post
Share on other sites

hi,

//By Nikiller
//17/01/2015
//v1.0
//Force unit stance
//0 = [unitName, "stanceName", "actionName", delay] execVM "scriptName.sqf"
//example: 0 = [player, "PRONE", "Down", 0.25] execVM "scriptName.sqf"
//example: 0 = [player, "CROUCH", "Crouch", 0.1] execVM "scriptName.sqf"
//example: 0 = [player, "STAND", "Up", 0.5] execVM "scriptName.sqf"

_unit = _this select 0;
_stance = _this select 1;
_anim = _this select 2;
_delay = _this select 3;

    while {alive _unit} do
    {
        if (stance _unit != "UNDEFINED") then
        {
            if (stance _unit != _stance) then
            {
                _unit playActionNow _anim;
            };
        };
        sleep _delay;
    };

cya.

 

Nikiller.

Share this post


Link to post
Share on other sites
  On 1/17/2016 at 9:01 AM, nikiller said:

hi,

//By Nikiller
//17/01/2015
//v1.0
//Force unit stance
//0 = [unitName, "stanceName", "actionName", delay] execVM "scriptName.sqf"
//example: 0 = [player, "PRONE", "Down", 0.25] execVM "scriptName.sqf"
//example: 0 = [player, "CROUCH", "Crouch", 0.1] execVM "scriptName.sqf"
//example: 0 = [player, "STAND", "Up", 0.5] execVM "scriptName.sqf"

_unit = _this select 0;
_stance = _this select 1;
_anim = _this select 2;
_delay = _this select 3;

    while {alive _unit} do
    {
        if (stance _unit != "UNDEFINED") then
        {
            if (stance _unit != _stance) then
            {
                _unit playActionNow _anim;
            };
        };
        sleep _delay;
    };

cya.

 

Nikiller.

thank you.

animation to change stance actualy changing stance, if executing animation to change stance not in right stance it will not be played, command stance returning stance of unit.

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  

×