Skip to content

Commit

Permalink
buildingsOccupation - suppression des groupes lorsque vide
Browse files Browse the repository at this point in the history
  • Loading branch information
zgmrvn committed Jun 18, 2017
1 parent 726e46c commit 086c9ed
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ for [{private _i = 0}, {(_i < _unitsCount) && {_i < _positionsCount}}, {_i = _i
private _dir = _position select 2;

private _group = createGroup _side;
_group deleteGroupWhenEmpty true;
private _wp = _group addWaypoint [_pos, 0];
deleteWaypoint [_group, (count (waypoints _group)) - 1];
private _unit = _group createUnit [selectRandom _units, _building modelToWorld _pos, [], 0, "CAN_COLLIDE"];
Expand Down

0 comments on commit 086c9ed

Please sign in to comment.