AI_PLR_SetMinedObjectInfo

Sets up the object tag so that the mines around it can be counted later using AI_PLR_GetMinedObjectCount. Only mines are couted that are withing range.

function AI_PLR_SetMinedObjectInfo(tag, range); wcp;

  AI_PLR_SetMinedObjectInfo(JumpBuoy, 2000);

  while(1) do begin
    if (AI_PLR_GetMinedObjectCount > 10) then
      SF_SetMissionSuccess;
    AI_WaitSeconds(1);
  end;