ACE3/addons/reload/functions/fnc_canCheckAmmoSelf.sqf
2023-12-31 17:00:22 -03:00

21 lines
423 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: veteran29
* Check if the player can check his own ammo.
*
* Arguments:
* 0: Player <OBJECT>
*
* Return Value:
* Can check ammo for self <BOOL>
*
* Example:
* [player] call ace_reload_fnc_canCheckAmmoSelf
*
* Public: No
*/
params ["_player"];
_player call CBA_fnc_canUseWeapon && {currentWeapon _player != ""} && {!((vehicle _player) isKindOf "StaticWeapon")}