Ilias38rus 5 Posted January 16, 2016 How to force player stay prone|prone or kneel|..? // stance , stance Share this post Link to post Share on other sites
shuko 59 Posted January 16, 2016 I doubt that's possible. Share this post Link to post Share on other sites
Ilias38rus 5 Posted January 17, 2016 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
nikiller 18 Posted January 17, 2016 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
Ilias38rus 5 Posted January 17, 2016 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