mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
new take option on bags from DayZ CE 1.7.7 #766
This commit is contained in:
14
SQF/dayz_code/init/object_BackpackAction.sqf
Normal file
14
SQF/dayz_code/init/object_BackpackAction.sqf
Normal file
@@ -0,0 +1,14 @@
|
||||
_holder = _this select 0;
|
||||
_type = _this select 1;
|
||||
_classname = _this select 2;
|
||||
|
||||
_name = getText (configFile >> _type >> _classname >> "displayName");
|
||||
|
||||
_actionSet = _holder getVariable["actionSet", false];
|
||||
|
||||
if (!_actionSet) then {
|
||||
s_player_holderPickup = _holder addAction [format[(localize "str_init_take"),_name], "\z\addons\dayz_code\actions\object_pickup.sqf",[_type,_classname,_holder], 20, true, true];
|
||||
player reveal _holder;
|
||||
_holder setVariable["actionSet", true];
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user