I don't know why but for some reason this doesn't print yay !
[lua]
function ENT:Think()
local ply = LocalPlayer()
if ply:KeyReleased( IN_RUN ) then
local eyeTrace = ply:GetEyeTrace()
if eyeTrace.Hit && eyeTrace.Entity == self.Entity then
Msg("YAY !")
end
end
end
[/lua]
But when I used something like IN_RELOAD it worked, I always thought shift was the run key ?
IN_SPEED is the shift key.
Sorry, you need to Log In to post a reply to this thread.