ValveBiped.Bip01_Head1 vnicecheat
So Im making an aimbot but it aims at people through walls, I have started the code but when it activates it only works when i look directly at them.
code:
local ply = LocalPlayer()
function test()
local Target = LocalPlayer():GetEyeTrace().Entity
if Target:IsPlayer() then
print("Bugger Targeted")
else
print("Bugger Is Not Visible")
end
end
hook.Add( "Think", "WallDetect", test)
Anyhelp you may give would be great. Thanks.
ValveBiped.Bip01_Head1 vnicecheat
make a trace and check the fraction or compare the entity
8:53 PM - Xenomorphic 1 hr 7 min cooldown: So is MPGH only exist so people can c+p from ************* and troll the gmod section?
[IMG]https://i739.photobucke*****m/albums/xx38/jorroa5990/flatexch2_zpsec96a7e2.gif[/IMG]
As help for the OP since this still isn't marked solved and others may need help... just drawl a line between you and the target (normally v, but in this case is literally Target) and then use the this: LINENAME.HitNonWorld <--- Just use that shit and check to see if the line you drew between the LocalPlayer and the Target hits the map, and if not, continue, else...don't.