function TargetingModule.SetTargetingMode(I,w)if w=="\083\099\111\112\101\100"or w=="\068\105\114\101\099\116"then I.TargetingMode=w I.TargetingModeChanged:Fire(w)else error("\073\110\118\097\108\105\100 \116\097\114\103\101\116\105\110\103 \109\111\100\101",2)end end
--- Switches to the specified targeting mode.
-- @returns void
function TargetingModule:SetTargetingMode(NewTargetingMode)
	if (NewTargetingMode == "Scoped") or (NewTargetingMode == "Direct") then
		self.TargetingMode = NewTargetingMode
		self.TargetingModeChanged:Fire(NewTargetingMode)
	else
		error("Invalid targeting mode", 2)
	end
end
