I'm having some trouble with the SetWorldClicker function, in particular I can't seem to fire my weapon normally in it by forcing input. It works fine if I click with my mouse, but refuses to fire more than 1 bullet when I use either
Code:
cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_ATTACK))
or simply
Code:
RunConsoleCommand("+attack")
No matter what I do I can't fire more than 1 bullet when using SetWorldClicker with automatic weapons(unless I physically click my mouse), for example like the context menu.
Also where can one find the 'source' of functions. For example I'd like to know what EXACTLY SetWorldClicker does. I've looked on garry's githug with no luck