mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 19:06:29 +03:00
Fix setdir and setVectorDirAndUp problem
Server admins should apply this fix at least for all their server files asap.
This commit is contained in:
@@ -73,7 +73,7 @@ if (_isStorage) then {
|
||||
_vector = [vectorDir _cursorTarget,vectorUp _cursorTarget];
|
||||
|
||||
_object = createVehicle [_typeOf, [0,0,0], [], 0, "CAN_COLLIDE"];
|
||||
_object setDir _dir;
|
||||
//_object setDir _dir; // setdir is incompatible with setVectorDirAndUp and should not be used together on the same object https://community.bistudio.com/wiki/setVectorDirAndUp
|
||||
_object setVectorDirAndUp _vector;
|
||||
_object setPosATL _location;
|
||||
_object setVariable ["memDir",_dir,true];
|
||||
|
||||
@@ -362,7 +362,7 @@ if (_canBuild select 0) then {
|
||||
if (!_cancel) then {
|
||||
_classname = _classnametmp;
|
||||
_tmpbuilt = _classname createVehicle _location;
|
||||
_tmpbuilt setdir _dir;
|
||||
//_tmpbuilt setdir _dir; // setdir is incompatible with setVectorDirAndUp and should not be used together on the same object https://community.bistudio.com/wiki/setVectorDirAndUp
|
||||
_tmpbuilt setVariable["memDir",_dir,true];
|
||||
_location = _position;
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ if ((count _upgrade) > 0) then {
|
||||
_classname = _newclassname;
|
||||
|
||||
_object = createVehicle [_classname, [0,0,0], [], 0, "CAN_COLLIDE"];
|
||||
_object setDir _dir;
|
||||
//_object setDir _dir; // setdir is incompatible with setVectorDirAndUp and should not be used together on the same object https://community.bistudio.com/wiki/setVectorDirAndUp
|
||||
_object setVariable["memDir",_dir,true];
|
||||
_object setVectorDirAndUp _vector;
|
||||
_object setPosATL _location;
|
||||
|
||||
@@ -117,7 +117,7 @@ if ((count _upgrade) > 0) then {
|
||||
_objectCharacterID = _obj getVariable ["CharacterID","0"];
|
||||
_classname = _newclassname;
|
||||
_object = createVehicle [_classname, [0,0,0], [], 0, "CAN_COLLIDE"];
|
||||
_object setDir _dir;
|
||||
//_object setDir _dir; // setdir is incompatible with setVectorDirAndUp and should not be used together on the same object https://community.bistudio.com/wiki/setVectorDirAndUp
|
||||
_object setVariable["memDir",_dir,true];
|
||||
_object setVectorDirAndUp _vector;
|
||||
_object setPosATL _location;
|
||||
|
||||
Reference in New Issue
Block a user