Hey guys, I am making a 2D Gamemode, all the view stuff is done, most of all stuff is done, except the actual most important aspect in the gamemode, the aiming and shooting. I want my aim-system to be like
, ofcourse it doesn’t have to be a fancy crosshair like that. I just want so that my player can rotate and shoot by using the mouse. This is what I got now: http://www.wegame.com/watch/aiming-gone-wrong/ I can’t turn around, only shoot up or down, in the position right. It would be very nice if you guys could help me with this, because i’m having a hard time figuring it out. I got this code now:[lua]local ply = LocalPlayer()
local test = gui.ScreenToVector(gui.MousePos())
local Vec1 = test
local Vec2 = ply:GetShootPos()
local Ang = (Vec1 - Vec2):Angle()
ply:SetEyeAngles( Ang )[/lua]
But that didn’t work, I tried setting gui.EnableScreenClicker, but it won’t look/shoot at the mouse position then.