mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
8763184b6a
* Dragon work cleanup remove unused p3ds add pos_gunner_dir/pos_gunner to static add [csw] prefix to arsenal version add sight interaction icons * Update fnc_staticWeaponInit_unloadExtraMags.sqf * ace_rearm compat allows pulling carry mags out of rearm trucks * Update fnc_ai_handleFired.sqf * Re-add 3den attributes * cleanup and move A2 staticweapon strings to ace_csw
24 lines
544 B
Plaintext
24 lines
544 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Brandon (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_sightCanAttach
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_target", "_unit"];
|
|
|
|
(alive _target)
|
|
&& {!(_target getVariable [QGVAR(sightAttached), ((typeOf _target) == QGVAR(staticAssembled))])}
|
|
&& {QGVAR(sight) in (weapons _unit)}
|