mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Deprecated/Slow Commands
Stop using them!
This commit is contained in:
@@ -7,13 +7,13 @@ _nearPlotPole = nearestObject [player, "Plastic_Pole_EP1_DZ"];
|
||||
|
||||
//"privatized" center variable
|
||||
_BD_radius = DZE_PlotPole select 0;
|
||||
_BD_center = getPos _nearPlotPole;
|
||||
_BD_center = [_nearPlotPole] call FNC_getPos;
|
||||
|
||||
_objects = [];
|
||||
|
||||
// circle
|
||||
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];
|
||||
_object = "Plastic_Pole_EP1" createVehicle _location;
|
||||
_object = createVehicle ["Plastic_Pole_EP1", _location, [], 0, "CAN_COLLIDE"];
|
||||
_object setpos _location;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user