mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
16 lines
512 B
Plaintext
16 lines
512 B
Plaintext
// by commy2
|
|
#include "script_component.hpp"
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
["loadout", {
|
|
params ["_unit"];
|
|
[_unit] call FUNC(takeLoadedATWeapon);
|
|
[_unit] call FUNC(updateInventoryDisplay);
|
|
}] call CBA_fnc_addPlayerEventHandler;
|
|
|
|
// Register fire event handler
|
|
// Only for the local player and for AI. Non-local players will handle it themselves
|
|
["ace_firedPlayer", DFUNC(replaceATWeapon)] call CBA_fnc_addEventHandler;
|
|
["ace_firedNonPlayer", DFUNC(replaceATWeapon)] call CBA_fnc_addEventHandler;
|