mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
incorrect createVehicleLocal format
removed setdir since its a round pole and should not be needed
This commit is contained in:
@@ -5,7 +5,6 @@ private ["_location","_object","_objects","_i","_dir","_nearPlotPole"];
|
|||||||
// global vars
|
// global vars
|
||||||
_nearPlotPole = nearestObject [player, "Plastic_Pole_EP1_DZ", 3];
|
_nearPlotPole = nearestObject [player, "Plastic_Pole_EP1_DZ", 3];
|
||||||
|
|
||||||
|
|
||||||
//"privatized" center variable
|
//"privatized" center variable
|
||||||
_BD_radius = DZE_PlotPole select 0;
|
_BD_radius = DZE_PlotPole select 0;
|
||||||
_BD_center = getPos _nearPlotPole;
|
_BD_center = getPos _nearPlotPole;
|
||||||
@@ -15,8 +14,7 @@ _BD_center = getPos _nearPlotPole;
|
|||||||
// circle
|
// circle
|
||||||
for "_i" from 0 to 360 step (270 / _BD_radius) do {
|
for "_i" from 0 to 360 step (270 / _BD_radius) do {
|
||||||
_location = [(_BD_center select 0) + ((cos _i) * _BD_radius), (_BD_center select 1) + ((sin _i) * _BD_radius), _BD_center select 2];
|
_location = [(_BD_center select 0) + ((cos _i) * _BD_radius), (_BD_center select 1) + ((sin _i) * _BD_radius), _BD_center select 2];
|
||||||
_object = createVehicleLocal ["Plastic_Pole_EP1", _location, [], 0, "CAN_COLLIDE"];
|
_object = "Plastic_Pole_EP1" createVehicleLocal _location;
|
||||||
_dir = ((_BD_center select 0) - (_location select 0)) atan2 ((_BD_center select 1) - (_location select 1));
|
_dir = ((_BD_center select 0) - (_location select 0)) atan2 ((_BD_center select 1) - (_location select 1));
|
||||||
_object setDir _dir;
|
|
||||||
_objects set [count _objects, _object];
|
_objects set [count _objects, _object];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user