mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
11 lines
410 B
Plaintext
11 lines
410 B
Plaintext
|
// by commy2
|
||
|
#include "script_component.hpp"
|
||
|
|
||
|
if (!hasInterface) exitWith {};
|
||
|
|
||
|
["inventoryDisplayLoaded", {[ACE_player, _this select 0] call FUNC(updateInventoryDisplay)}] call EFUNC(common,addEventHandler);
|
||
|
["playerInventoryChanged", {
|
||
|
[_this select 0, _this select 1 select 11] call FUNC(takeLoadedATWeapon);
|
||
|
[_this select 0] call FUNC(updateInventoryDisplay);
|
||
|
}] call EFUNC(common,addEventHandler);
|