/// <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 link</param>
/// <remarks>The last object in the array will be the root object of the linkset TODO: Is this true?</remarks>
public void LinkPrims(Simulator simulator, List<Long> localIDs)
{
ObjectLinkPacket packet = new ObjectLinkPacket();
packet.AgentData.AgentID = Client.self.getAgentID();
packet.AgentData.SessionID = Client.self.getSessionID();
packet.ObjectData = new ObjectLinkPacket.ObjectDataBlock[localIDs.size()];