function TargetingModule.SetTargetingMode(q,J)if J=="\083\099\111\112\101\100"or J=="\068\105\114\101\099\116"then q.TargetingMode=J q.TargetingModeChanged:Fire(J)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

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
