mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
#2580 (1) - Fix bandages always created at terrain level.
This commit is contained in:
parent
60ef413050
commit
4ba0d72bfd
@ -45,12 +45,9 @@ _createLitter = {
|
|||||||
if(surfaceIsWater (getPos _unit)) exitWith { false };
|
if(surfaceIsWater (getPos _unit)) exitWith { false };
|
||||||
|
|
||||||
_position = getPosATL _unit;
|
_position = getPosATL _unit;
|
||||||
_position params ["_posX", "_posY"];
|
_position params ["_posX", "_posY", "_posZ"];
|
||||||
_position = if (random(1) >= 0.5) then {
|
_position = [_posX + (random 2) - 1, _posY + (random 2) - 1, _posZ];
|
||||||
[_posX + random 1, _posY + random 1, 0]
|
|
||||||
} else {
|
|
||||||
[_posX - random 1, _posY - random 1, 0];
|
|
||||||
};
|
|
||||||
_direction = (random 360);
|
_direction = (random 360);
|
||||||
|
|
||||||
// Create the litter, and timeout the event based on the cleanup delay
|
// Create the litter, and timeout the event based on the cleanup delay
|
||||||
|
Loading…
Reference in New Issue
Block a user