• OnMousePressed issue
    2 replies, posted
Okay so here's what I have for the code right now. [code] hthealth.OnMousePressed = function(code) PrintTable(code) hthealth.tempX, hthealth.tempY = hthealth:CursorPos() if code == MOUSE_LEFT then print("YO DAWG") hthealth.CanBeGrabbed = "true" hthealth:MouseCapture(true) end end [/code] And it's not printing "YO DAWG" so that means that the code isn't being checked properly. This worked in a PANEL:OnMousePressed(code) function, but now I'm trying to make it on a regular DPanel. Any ideas? :D
Are you sure the input to the function is an MOUSE_something enum?
Yeah. I had this working in a custom panel.
Sorry, you need to Log In to post a reply to this thread.