Update object pickup actions

- pre-compile object_BackpackAction, object_pickupAction and the actionMonitor
- switch from execVM to spawn
- pickup actions are grouped under actions\pickupActions now
This commit is contained in:
A Man
2020-04-23 17:48:55 +02:00
parent becfee04c9
commit 56bfa47615
8 changed files with 186 additions and 180 deletions

View File

@@ -0,0 +1,19 @@
if (player isKindOf "PZombie_VB") exitWith {};
private ["_holder", "_type", "_classname", "_actionSet", "_name"];
_holder = _this select 0;
_type = _this select 1;
_classname = _this select 2;
_name = getText (configFile >> _type >> _classname >> "displayName");
if ((!isNil "_holder") and {(!isNull _holder)}) then {
_actionSet = _holder getVariable["actionSet", false];
if ((isNil "_actionSet") or {(!_actionSet)}) then {
s_player_holderPickup = _holder addAction [format [localize "str_init_take", _name], "\z\addons\dayz_code\actions\pickupActions\object_pickup.sqf",[_type,_classname,_holder], 20, true, true];
player reveal _holder;
_holder setVariable["actionSet", true];
};
};