/*
	FILE: fnc_init.sqf

	Name: tbd_m119_m119_fnc_init

	Author(s):
		ilbinek

	Description:
		Init all variables for the M119

	Parameters:
		_arty	- object	- M119 to be inited

	Returns:
		Nothing
	
	Examples:
		> [_arty] call tbd_m119_m119_fnc_init;

	Public:
		No
*/

#include "..\script_component.hpp"

params ["_arty"];

// Set the state variables
_arty setVariable [QGVAR(folded), false, true];
_arty setVariable [QGVAR(breech), false, true];
_arty setVariable [QGVAR(loaded), false, true];
_arty setVariable [QGVAR(towed), false, true];
_arty setVariable [QGVAR(fired), false, true];

_arty enableRopeAttach true;

_arty addAction [
    "",
    {},
    nil,
    -1e10,
    false,
    false,
    "defaultAction",
    '_target getVariable [(QGVAR(breech)),false]'
];
