Norfeder Posted November 30, 2017 Share Posted November 30, 2017 Hi there. I'm making a power weapon that is exclusive to my character. RMB is already occupied for a spell and I plan to use LMB for casting another spell. But I just can't find a method to trigger a function by left-clicking in empty space. Link to comment Share on other sites More sharing options...
Backtalker Posted December 2, 2017 Share Posted December 2, 2017 (edited) local item = GLOBAL.TheInput:GetWorldEntityUnderMouse() if item == nil then -- code here else -- code here end Assuming you know how to bind a KeyDownHandler to the left mouse Edited December 2, 2017 by Backtalker "G." not "GLOBAL." Link to comment Share on other sites More sharing options...
Kronas Posted December 7, 2017 Share Posted December 7, 2017 (edited) Interesting ! i hope someone respond to you with helpful tips i really am looking for this as well Edited December 7, 2017 by Kronas Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now