I've got a couple questions, so I'll just post them both in one thread.
First off, what's the proper way to check if something like Class::FunctionName is a function?
Using something such as echo(isfunction(Armor::OnCollision())); always returns 0, even when I know the function exists. I've also tried things such as:
echo(isfunction("Armor::OnCollision()"));
echo(isfunction(Armor.OnCollision()));
echo(isfunction(OnCollision()));
Yet nothing seems to work.
Second, how could I check if a variable exists under any index without using for()?
By this, I mean:
%this.someVariable[23918] = %someVariable;
%this.someVariable[102] = %someOtherVariable;
Would I be able to just use if(%this.somevariable) and it would evaluate to true if any variables named that under any index exist, or is that not possible without for()?