fn GetMeshId name = ( for i=1 to g_varSetMeshes.count do ( if name == g_varSetMeshes[i].name then return i as integer ) return 0 )