mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fc7b310529
the 9m14 control joystick can attach 4 9m14 launchers at a time. Replicate that here
26 lines
583 B
Plaintext
26 lines
583 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Brandon (TCVM)
|
|
* Initialise joystick
|
|
*
|
|
* Arguments:
|
|
* 0: Static Weapon <OBJECT>
|
|
* 1: Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [cursorObject, player] call ace_malyutka_fnc_initJoystick
|
|
*
|
|
* Public: No
|
|
*/
|
|
params ["_joystick"];
|
|
|
|
// each plug has information regarding the current launcher which is connected
|
|
// if null, no launcher is connected
|
|
_joystick setVariable [QGVAR(plugStatus), [objNull, objNull, objNull, objNull], true];
|
|
_joystick setVariable [QGVAR(vehicleAmmo), 0, true];
|
|
_joystick setVehicleAmmo 0;
|
|
|