mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
debug for vehicle upgrade setdir
This commit is contained in:
@@ -91,7 +91,8 @@ if (_IsNearVehicle >= 1) then {
|
|||||||
_location = getposATL _vehicle;
|
_location = getposATL _vehicle;
|
||||||
|
|
||||||
// Get direction
|
// Get direction
|
||||||
_dir = direction _vehicle;
|
_dir = getDir _vehicle;
|
||||||
|
diag_log format ["The original (preDelete) vehicle position was %1", _dir];
|
||||||
|
|
||||||
// Current charID
|
// Current charID
|
||||||
_objectCharacterID = _vehicle getVariable ["CharacterID","0"];
|
_objectCharacterID = _vehicle getVariable ["CharacterID","0"];
|
||||||
@@ -107,13 +108,15 @@ if (_IsNearVehicle >= 1) then {
|
|||||||
|
|
||||||
// Create new object
|
// Create new object
|
||||||
_object = createVehicle [_classname, [0,0,0], [], 0, "CAN_COLLIDE"];
|
_object = createVehicle [_classname, [0,0,0], [], 0, "CAN_COLLIDE"];
|
||||||
|
diag_log format ["The preSetDir vehicle position was %1", _dir];
|
||||||
// Set direction
|
|
||||||
_object setDir _dir;
|
|
||||||
|
|
||||||
// Set location
|
// Set location
|
||||||
_object setPosATL _location;
|
_object setPosATL _location;
|
||||||
|
|
||||||
|
// Set direction
|
||||||
|
_object setDir _dir;
|
||||||
|
diag_log format ["The upgraded setDir vehicle position is %1", _dir];
|
||||||
|
|
||||||
PVDZE_veh_Publish2 = [_object,[_dir,_location],_classname,true,_objectCharacterID,player];
|
PVDZE_veh_Publish2 = [_object,[_dir,_location],_classname,true,_objectCharacterID,player];
|
||||||
publicVariableServer "PVDZE_veh_Publish2";
|
publicVariableServer "PVDZE_veh_Publish2";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user