ACE3/addons/malyutka/functions/fnc_canPickupPlug.sqf
Brandon Danyluk fc7b310529 Add realistic 9m14 behaviour
the 9m14 control joystick can attach 4 9m14 launchers at a time. Replicate that here
2021-05-08 02:48:40 -06:00

21 lines
432 B
Plaintext

#include "script_component.hpp"
/*
* Author: Brandon (TCVM)
* Whether or not we can pickup the plug from the ground
*
* Arguments:
* 0: Unit <OBJECT>
* 1: Plug <OBJECT>
*
* Return Value:
* None
*
* Example:
* [cursorObject, player] call ace_malyutka_fnc_canPickupPlug
*
* Public: No
*/
params ["", "_plug"];
(objNull isEqualTo attachedTo _plug) && { (_plug getVariable QGVAR(attachedControlBox)) isEqualTo objNull }