void Unique()/ETHEntityArray

Remove repeated entries in the array.

ETHEntity@ orc = SeekEntity("orc.ent");
ETHEntity@ elf = SeekEntity("elf.ent");

ETHEntityArray soldiers;
soldiers.Insert(orc);
soldiers.Insert(elf);

soldiers.Insert(orc);
soldiers.Insert(orc);
soldiers.Insert(orc);
soldiers.Insert(orc);
soldiers.Unique(); print("Number of soldiers in the array: " + soldiers.Size());

Output:

Number of soldiers in the array: 2