ACE3/addons/csw/functions/fnc_assemble_canPickupTripod.sqf
2023-12-18 17:47:01 +01:00

22 lines
400 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: tcvm
* Checks if the player can pick-up the tripod.
*
* Arguments:
* 0: Tripod <OBJECT>
* 1: Unit <OBJECT>
*
* Return Value:
* Can pickup tripod <BOOL>
*
* Example:
* [tripod, player] call ace_csw_fnc_assemble_canPickupTripod
*
* Public: No
*/
params ["_tripod", "_player"];
((secondaryWeapon _player) isEqualTo "") && {alive _tripod}