mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
24 lines
537 B
Plaintext
24 lines
537 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_sightCanAttach
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_target", "_unit"];
|
|
|
|
(alive _target)
|
|
&& {!(_target getVariable [QGVAR(sightAttached), ((typeOf _target) == QGVAR(staticAssembled))])}
|
|
&& {QGVAR(sight) in (weapons _unit)}
|