[SOLVED] Catch left click on frame?
#1
Is it possible catch left click on the frame (#389)?
Reply
Thanks given by:
#2
Try this hook: http://api-docs.cuberite.org/OnPlayerRig...ntity.html
Reply
Thanks given by:
#3
(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 Smile. But I need a _left_ button.
Reply
Thanks given by:
#4
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
Reply
Thanks given by:
#5
(01-02-2016, 02:07 AM)NiLSPACE Wrote: 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

You're ahead of me Smile Thank you!
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)