/// <param name="simulator">A reference to the <seealso cref="OpenMetaverse.Simulator"/> object where the objects reside</param>
/// <param name="localIds">An array which contains the IDs of the objects to set the group id on</param>
/// <param name="groupID">The Groups ID</param>
public void SetObjectsGroup(Simulator simulator, List<Long> localIds, UUID groupID)
{
ObjectGroupPacket packet = new ObjectGroupPacket();
packet.AgentData.AgentID = Client.self.getAgentID();
packet.AgentData.GroupID = groupID;
packet.AgentData.SessionID = Client.self.getSessionID();
packet.ObjectData = new ObjectGroupPacket.ObjectDataBlock[localIds.size()];