You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Actions.UnitKill on a newly equipped Warrior before he joined a group creates an invalid group that exists and is alive, but has 0 members and is hungry.
The text was updated successfully, but these errors were encountered:
Create a map in the editor, with a Barracks stocked with recruits and axes.
Attach the following script, then start a game on the map and recruit a Militia.
procedure OnTick;
var
aUnits: array of Integer;
i: Integer;
begin
if States.StatUnitTypeCount(0, 14) > 0 then begin
aUnits := States.PlayerGetAllUnits(0);
for i := 0 to Length(aUnits)-1 do if States.UnitType(aUnits[i]) = 14 then
Actions.UnitKill(aUnits[i], True);
end;
end;
andreus791
added a commit
to andreus791/kam_remake1
that referenced
this issue
Nov 16, 2016
Using Actions.UnitKill on a newly equipped Warrior before he joined a group creates an invalid group that exists and is alive, but has 0 members and is hungry.
The text was updated successfully, but these errors were encountered: