mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-28 18:51:50 +03:00
Add Vector Building
This commit is contained in:
@@ -113,6 +113,7 @@ if ((count _upgrade) > 0) then {
|
||||
|
||||
// Get direction
|
||||
_dir = getDir _obj;
|
||||
_vector = [(vectorDir _obj),(vectorUp _obj)];
|
||||
|
||||
// Reset the character ID on locked doors before they inherit the newclassname
|
||||
if (_classname in DZE_DoorsLocked) then {
|
||||
@@ -127,6 +128,10 @@ if ((count _upgrade) > 0) then {
|
||||
|
||||
// Set direction
|
||||
_object setDir _dir;
|
||||
_object setVariable["memDir",_dir,true];
|
||||
|
||||
// Set vector
|
||||
_object setVectorDirAndUp _vector;
|
||||
|
||||
// Set location
|
||||
_object setPosATL _location;
|
||||
@@ -134,9 +139,9 @@ if ((count _upgrade) > 0) then {
|
||||
|
||||
format[localize "str_epoch_player_142",_text] call dayz_rollingMessages;
|
||||
|
||||
PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location],_classname,_obj,player];
|
||||
PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location, _vector],_classname,_obj,player];
|
||||
if (DZE_plotforLife) then {
|
||||
PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location,_playerUID],_classname,_obj,player];
|
||||
PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location,_playerUID, _vector],_classname,_obj,player];
|
||||
};
|
||||
publicVariableServer "PVDZE_obj_Swap";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user