mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
32 lines
781 B
Plaintext
32 lines
781 B
Plaintext
/*
|
|
* Author: commy2
|
|
*
|
|
* Abhocken! Unit goes kneeling if not prone already and lowers weapon. Try, throw, catch because I'm bored.
|
|
*
|
|
* Argument:
|
|
* 0: Unit (Object)
|
|
*
|
|
* Return value:
|
|
* None.
|
|
*/
|
|
|
|
private "_unit";
|
|
|
|
_unit = _this select 0;
|
|
|
|
try {
|
|
if (_unit == vehicle _unit) then {
|
|
switch (currentWeapon _unit) do {
|
|
case "" : {throw "AmovPknlMstpSnonWnonDnon"};
|
|
case (primaryWeapon _unit) : {throw "AmovPknlMstpSlowWrflDnon"};
|
|
case (secondaryWeapon _unit) : {throw "AmovPknlMstpSrasWlnrDnon"};
|
|
case (handgunWeapon _unit) : {throw "AmovPknlMstpSlowWpstDnon"};
|
|
case (binocular _unit) : {throw "AmovPknlMstpSoptWbinDnon"};
|
|
};
|
|
};
|
|
} catch {
|
|
if (stance _unit != "PRONE") then {
|
|
[_unit, _exception] call GVAR(fnc_doAnimation);
|
|
};
|
|
};
|