2015-04-17 10:28:06 +00:00
|
|
|
// by commy2
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
|
2016-05-24 13:13:11 +00:00
|
|
|
["ace_playerInventoryChanged", {
|
2015-08-10 20:12:42 +00:00
|
|
|
params ["_unit"];
|
|
|
|
[_unit] call FUNC(takeLoadedATWeapon);
|
2015-08-09 03:25:19 +00:00
|
|
|
[_unit] call FUNC(updateInventoryDisplay);
|
2016-05-22 15:29:05 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|
2016-02-06 19:39:08 +00:00
|
|
|
|
|
|
|
// Register fire event handler
|
|
|
|
// Only for the local player and for AI. Non-local players will handle it themselves
|
2016-05-24 13:13:11 +00:00
|
|
|
["ace_firedPlayer", DFUNC(replaceATWeapon)] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_firedNonPlayer", DFUNC(replaceATWeapon)] call CBA_fnc_addEventHandler;
|