--[[
	Sets the system marker so that clients can see it through walls. If message is nil, then the marker is removed.
]]

function BaseSystem:_setMarker(message)
	local part = self._model.PrimaryPart
	DestroyMarker:FireAllClients(part)

	local translatedNames = {
		Camera = translate("Camera"),
		Engine = translate("Engine"),
		Generator = translate("Generator"),
		Gravity = translate("Gravity"),
		Lights = translate("Lights"),
		Shield = translate("Shields")
	}

	if message then
		CreateMarker:FireAllClients(part, translatedNames[self._model.Name] or self._model.Name, message)
	end
end
