All pastes #70970 Raw Edit

Unnamed

public lua v1 · immutable
#70970 ·published 2006-06-25 01:42 UTC
rendered paste body
-- CT_RA_CustomOnClickFunction-- Set this variable (CT_RA_CustomOnClickFunction) in your own mod to your function to handle OnClicks.-- Two arguments are passed, button and raidid.-- Button is a string that refers to the mouse button pressed, "LeftButton" or "RightButton".-- Raidid is a string with the unit id, such as "raid1".-- Example: function MyFunction(button, raidid) doStuff(); end-- CT_RA_CustomOnClickFunction = MyFunction;-- Note! If the function returns true, the default CTRA behaviour will not be called.-- If it returns false or nil, the default behaviour will be called.