mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix getPos order (#4889)
This commit is contained in:
parent
159e762576
commit
f678f4a3b1
@ -88,9 +88,9 @@ if (_activated && local _logic) then {
|
|||||||
private _newPosASL = if (_followPlayers) then {
|
private _newPosASL = if (_followPlayers) then {
|
||||||
// Select a target unit at random.
|
// Select a target unit at random.
|
||||||
private _targetUnit = selectRandom _allUnits;
|
private _targetUnit = selectRandom _allUnits;
|
||||||
AGLtoASL (_targetUnit getPos [random 360, _minimalDistance + random (_maximalDistance - _minimalDistance)]);
|
AGLtoASL (_targetUnit getPos [_minimalDistance + random (_maximalDistance - _minimalDistance), random 360]);
|
||||||
} else {
|
} else {
|
||||||
AGLtoASL (_logic getPos [random 360, _minimalDistance + random (_maximalDistance - _minimalDistance)]);
|
AGLtoASL (_logic getPos [_minimalDistance + random (_maximalDistance - _minimalDistance), random 360]);
|
||||||
};
|
};
|
||||||
|
|
||||||
TRACE_1("",_newPosASL);
|
TRACE_1("",_newPosASL);
|
||||||
|
Loading…
Reference in New Issue
Block a user