Add Vector Building

This commit is contained in:
icomrade
2016-05-12 22:52:04 -04:00
parent 8b0e03545f
commit 6c24aaeb3b
14 changed files with 406 additions and 48 deletions

View File

@@ -124,6 +124,8 @@ if ((count _upgrade) > 0) then {
// Get direction
_dir = getDir _obj;
// Get vector
_vector = [(vectorDir _obj),(vectorUp _obj)];
// Current charID
_objectCharacterID = _obj getVariable ["CharacterID","0"];
@@ -135,6 +137,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;
@@ -157,7 +163,7 @@ if ((count _upgrade) > 0) then {
format[localize "str_epoch_player_159",_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];
publicVariableServer "PVDZE_obj_Swap";
player reveal _object;