mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
setpos to get better placement of preview poles
This commit is contained in:
@@ -15,6 +15,5 @@ _BD_center = getPos _nearPlotPole;
|
||||
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" createVehicleLocal _location;
|
||||
_dir = ((_BD_center select 0) - (_location select 0)) atan2 ((_BD_center select 1) - (_location select 1));
|
||||
_objects set [count _objects, _object];
|
||||
_object setpos _location;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user