Is it possible catch left click on the frame (#389)?
[SOLVED] Catch left click on frame?
|
01-01-2016, 03:23 AM
Try this hook: http://api-docs.cuberite.org/OnPlayerRig...ntity.html
01-02-2016, 01:52 AM
(01-01-2016, 03:23 AM)NiLSPACE Wrote: Try this hook: http://api-docs.cuberite.org/OnPlayerRig...ntity.html Clicking on the right button works fine . But I need a _left_ button.
Try the OnTakeDamage hook.
function OnTakeDamage(a_Receiver, a_TDI) if (a_TDI.Attacker == nil or not a_Receiver:IsItemFrame() or not a_TDI.Attacker:IsPlayer()) then return false end -- Your code end Thanks given by: DrMasik
01-02-2016, 02:29 AM
(01-02-2016, 02:07 AM)NiLSPACE Wrote: Try the OnTakeDamage hook. You're ahead of me Thank you! |
« Next Oldest | Next Newest »
|
Users browsing this thread: 2 Guest(s)