public static bool UpdateVoxelMapScript(MyVoxelMap voxelMap) { if (MyHud.ContainsTextForEntity(voxelMap)) { if (m_outpostReached == false) { if (Vector3.Distance(MySession.PlayerShip.GetPosition(), voxelMap.GetPosition()) < REMOVE_FROM_HUD_POSSIBLE_OUTPOST_DISTANCE) { MyHud.RemoveText(voxelMap); } } else { MyHud.RemoveText(voxelMap); } } return(true); }
public static bool UpdateVoxelMapScript(MyVoxelMap voxelMap) { if (MyHud.ContainsTextForEntity(voxelMap)) { if (m_outpostReached == false) { if (Vector3.Distance(MySession.PlayerShip.GetPosition(), voxelMap.GetPosition()) < REMOVE_FROM_HUD_POSSIBLE_OUTPOST_DISTANCE) { MyHud.RemoveText(voxelMap); } } else { MyHud.RemoveText(voxelMap); } } return true; }