ACE3/addons/dragon/functions/fnc_canPickupTripod.sqf
Grim ee79decb45
CSW - Code cleanup (#9777)
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-02-07 20:36:13 -03:00

25 lines
654 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: tcvm
* Determines if you can pick-up the Dragon missile. If the missile was fired you will not be able to pick up the tripod.
*
* Arguments:
* 0: Target <OBJECT>
* 1: Unit Performing Action <OBJECT>
*
* Return Value:
* Can Pickup Tripod <BOOL>
*
* Example:
* [vehicle player, player] call ace_dragon_fnc_canPickupTripod;
*
* Public: No
*/
params ["_target", "_unit"];
(alive _target)
&& {!alive (gunner _target)}
&& {!(_target getVariable [QGVAR(fired), false])}
&& {!(_target getVariable [QGVAR(sightAttached), ((typeOf _target) == QGVAR(staticAssembled))])}
&& EFUNC(csw,canPickupTripod)