ACE3/addons/dragon/functions/fnc_sightCanDetach.sqf
Bailey Danyluk 074fc362a7 revert pt2
2024-05-27 17:41:23 -06:00

23 lines
497 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: tcvm
* Determines if you can attach the sighting unit to the Dragon missile.
*
* Arguments:
* 0: Target <OBJECT>
* 1: Unit Performing Action <OBJECT>
*
* Return Value:
* Can Attach Sighting Unit <BOOL>
*
* Example:
* [cursorObject, player] call ace_dragon_fnc_sightCanDetach
*
* Public: No
*/
params ["_target", "_unit"];
(alive _target)
&& {_target getVariable [QGVAR(sightAttached), ((typeOf _target) == QGVAR(staticAssembled))]}