mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
debug for vehicle upgrade setdir
This commit is contained in:
@@ -91,7 +91,8 @@ if (_IsNearVehicle >= 1) then {
|
||||
_location = getposATL _vehicle;
|
||||
|
||||
// Get direction
|
||||
_dir = direction _vehicle;
|
||||
_dir = getDir _vehicle;
|
||||
diag_log format ["The original (preDelete) vehicle position was %1", _dir];
|
||||
|
||||
// Current charID
|
||||
_objectCharacterID = _vehicle getVariable ["CharacterID","0"];
|
||||
@@ -107,12 +108,14 @@ if (_IsNearVehicle >= 1) then {
|
||||
|
||||
// Create new object
|
||||
_object = createVehicle [_classname, [0,0,0], [], 0, "CAN_COLLIDE"];
|
||||
|
||||
// Set direction
|
||||
_object setDir _dir;
|
||||
diag_log format ["The preSetDir vehicle position was %1", _dir];
|
||||
|
||||
// Set 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];
|
||||
publicVariableServer "PVDZE_veh_Publish2";
|
||||
@@ -169,4 +172,4 @@ if (_IsNearVehicle >= 1) then {
|
||||
cutText [(localize "STR_EPOCH_PLAYER_27"), "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
DZE_ActionInProgress = false;
|
||||
DZE_ActionInProgress = false;
|
||||
Reference in New Issue
Block a user