so basically, i could patch anything very easily if the same function is called all the programm long by doing this (or just tweak the function with conditions if this has to change):
Lua Code:
if control:GetHandler("OnThisaction") == nil then control:SetHandler("OnThisaction", definedfunction) end
?