How to know the installed user functions?
Posted: Wed Jan 19, 2011 7:39 am
I'd like to know how to detect if a certain user function is installed because if it isn't then an error comes up but doing:
doesn't make it because the function returns nil anyway isn't it?
is there a variable with all the installed user functions? like settings.addons["gameText"] or settings.uf["gameText"] ? that records either the uf file names or the function names themselves?
Code: Select all
if gameText then
gameText("I exist","WARNING")
end
is there a variable with all the installed user functions? like settings.addons["gameText"] or settings.uf["gameText"] ? that records either the uf file names or the function names themselves?