mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Set Buildup Combination to cache variable
This commit is contained in:
@@ -461,7 +461,7 @@ if (_hasrequireditem) then {
|
|||||||
cutText [format[localize "str_build_01",_text], "PLAIN DOWN"];
|
cutText [format[localize "str_build_01",_text], "PLAIN DOWN"];
|
||||||
|
|
||||||
if (_isPole) then {
|
if (_isPole) then {
|
||||||
0 spawn player_plotPreview;
|
[] spawn player_plotPreview;
|
||||||
};
|
};
|
||||||
|
|
||||||
_tmpbuilt setVariable ["OEMPos",_location,true];
|
_tmpbuilt setVariable ["OEMPos",_location,true];
|
||||||
@@ -477,7 +477,7 @@ if (_hasrequireditem) then {
|
|||||||
_combination_2 = floor(random 10);
|
_combination_2 = floor(random 10);
|
||||||
_combination_3 = floor(random 10);
|
_combination_3 = floor(random 10);
|
||||||
_combination = format["%1%2%3",_combination_1,_combination_2,_combination_3];
|
_combination = format["%1%2%3",_combination_1,_combination_2,_combination_3];
|
||||||
|
dayz_combination = _combination;
|
||||||
if (_combination_1 == 100) then {
|
if (_combination_1 == 100) then {
|
||||||
_combination_1_Display = "Red";
|
_combination_1_Display = "Red";
|
||||||
};
|
};
|
||||||
@@ -495,6 +495,7 @@ if (_hasrequireditem) then {
|
|||||||
_combination_2 = floor(random 10);
|
_combination_2 = floor(random 10);
|
||||||
_combination_3 = floor(random 10);
|
_combination_3 = floor(random 10);
|
||||||
_combination = format["%1%2%3",_combination_1,_combination_2,_combination_3];
|
_combination = format["%1%2%3",_combination_1,_combination_2,_combination_3];
|
||||||
|
dayz_combination = _combination;
|
||||||
_combinationDisplay = _combination;
|
_combinationDisplay = _combination;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -504,6 +505,7 @@ if (_hasrequireditem) then {
|
|||||||
_combination_3 = floor(random 10);
|
_combination_3 = floor(random 10);
|
||||||
_combination_4 = floor(random 10);
|
_combination_4 = floor(random 10);
|
||||||
_combination = format["%1%2%3%4",_combination_1,_combination_2,_combination_3,_combination_4];
|
_combination = format["%1%2%3%4",_combination_1,_combination_2,_combination_3,_combination_4];
|
||||||
|
dayz_combination = _combination;
|
||||||
_combinationDisplay = _combination;
|
_combinationDisplay = _combination;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -528,8 +530,6 @@ if (_hasrequireditem) then {
|
|||||||
publicVariableServer "PVDZE_obj_Publish";
|
publicVariableServer "PVDZE_obj_Publish";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
deleteVehicle _tmpbuilt;
|
deleteVehicle _tmpbuilt;
|
||||||
cutText [(localize "str_epoch_player_46") , "PLAIN DOWN"];
|
cutText [(localize "str_epoch_player_46") , "PLAIN DOWN"];
|
||||||
|
|||||||
Reference in New Issue
Block a user