ACE3/addons/common/functions/fnc_canUseWeapon.sqf

16 lines
339 B
Plaintext
Raw Normal View History

// by commy2
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
// returns true if the unit is on foot or in a ffv position
2015-05-14 18:02:42 +00:00
private ["_config"];
2015-05-14 18:02:42 +00:00
PARAMS_1(_unit);
if (_unit == vehicle _unit) exitWith {true};
_config = configFile >> "CfgMovesMaleSdr" >> "States" >> animationState _unit;
isClass _config
&& {getNumber (_config >> "canPullTrigger") == 1}