Posted 04 April 2014 - 01:01 AM
Hey everybody,
So im trying to overwriting an function in my little API for special usage. I can overwrite the function by just saying:
And that works fine if i just want to call that function. The problem is that other function from within the API still call the old version, not the one i created.
Is there any way to make that happen?
So im trying to overwriting an function in my little API for special usage. I can overwrite the function by just saying:
os.loadAPI("myAPI")
test = function()
print("the function i want to use")
end
myAPI.test = test
myAPI.test()
-- prints "the function i want to use"
And that works fine if i just want to call that function. The problem is that other function from within the API still call the old version, not the one i created.
Is there any way to make that happen?