Just as the title says, how do i pass array<string>& to a function?
I have this function defined in anglescript and I have other script functions calling it. However, it is failing to compile with this message: unit-spec.as (5,25) : ERR : Expeted ">" or ","
bool stringInList( array<string>& arg, string s )
{
for( uint n = 0; n < arg.length(); n++ )
{
if( arg[n] == s )
return true;
}
return false;
}