Calls a public function.
<code cpp>
VAULTSCRIPT vaultmp::Result (*CallPublic)(std::string, ...);
native CallPublic(const name{}, {Fixed,Float,_}:...);
</code>
name - the public name of the function
... - the arguments. Must match the parameter list of the public function.
Returns a
vaultmp::Result.
<code cpp>
void VAULTSCRIPT exec()
{
// MagicFunction is a public function defined in some other script
vaultmp::Result result = CallPublic("MagicFunction", 1, 2, "www.vaultmp.com");
}
</code>
<code c>
main()
{
// MagicFunction is a public function defined in some other script
new result = CallPublic("MagicFunction", 1, 2, "www.vaultmp.com");
}
</code>