Localization updates

Some localization updates and some code optimization.
This commit is contained in:
oiad
2016-07-17 22:23:25 +12:00
parent d47d887a66
commit 3d75c67574
23 changed files with 188 additions and 179 deletions

View File

@@ -32,14 +32,14 @@ _fn_Lockold = {
_target animate ["DoorR", 0];
_target animate ["DoorL", 0];
_target setVariable ["isOpen", "0", true];
"Gates locked." call dayz_rollingMessages;
localize "STR_BLD_GATES_LOCKED" call dayz_rollingMessages;
};
};
_fn_UnLockold = {
if (typeOf _target in ["WoodenGate_2","WoodenGate_3","WoodenGate_4"]) then {
_target setVariable ["isOpen", "1", true];
"Gates Unlocked." call dayz_rollingMessages;
localize "STR_BLD_GATES_UNLOCKED" call dayz_rollingMessages;
};
};
@@ -47,7 +47,7 @@ _fn_Open = {
if (typeOf _target in ["WoodenGate_1","WoodenGate_2","WoodenGate_3","WoodenGate_4"]) then {
_target animate ["DoorR", 1];
_target animate ["DoorL", 1];
"Gates Opened." call dayz_rollingMessages;
localize "STR_BLD_GATES_OPENED" call dayz_rollingMessages;
};
};
@@ -55,7 +55,7 @@ _fn_Closed = {
if (typeOf _target in ["WoodenGate_1","WoodenGate_2","WoodenGate_3","WoodenGate_4"]) then {
_target animate ["DoorR", 0];
_target animate ["DoorL", 0];
"Gates Closed." call dayz_rollingMessages;
localize "STR_BLD_GATES_CLOSED" call dayz_rollingMessages;
};
};