Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgMagazines/Items/Workbench.hpp
ebaydayz c2b16f0828 Consolidate DZE_ActionInProgress and r_action_count to one variable
There is no point in having two variables for the same purpose.

It is also pointless to keep an action count tally like r_action_count
was doing, since it is only ever checked for being 0 or 1. Any count
higher or lower than that is irrelevant.

I will make this change in vanilla too.
2016-08-25 15:38:27 -04:00

21 lines
668 B
C++

class ItemWorkBench : CA_Magazine
{
scope = public;
count = 1;
type = 256;
displayName = $STR_BLD_name_ItemWorkBench;//"Work Bench (Packed)"
model = "z\addons\dayz_buildings\models\workbench_flat.p3d";
picture = "\z\addons\dayz_buildings\equip\item_workbench.paa"; // add to PBO
descriptionShort = $STR_BLD_desc_ItemWorkBench;//"A Folded Workbench, required for House Building and Some Crafting"
vehicle = "WorkBench";
sfx = "tentunpack";
class ItemActions {
class Build {
text = $STR_BLD_build_ItemWorkBench;//"place WorkBench"
script = "spawn player_build;";
require[] = {};
consume[] = {"ItemWorkBench"};
create = "WorkBench";
};
};
};