Find Spawner by Name

Code

	orxSTRUCTURE *structure = orxStructure_GetFirst(orxSTRUCTURE_ID_SPAWNER );
	while (structure != orxNULL){
		orxSPAWNER *spawn = orxSPAWNER(structure);
		if (orxString_Compare(orxSpawner_GetName(spawn), spawnerName) == 0 ){
			return spawn;
		} else {
			structure = orxStructure_GetNext(structure );
		}
	}

Code example by gemberkoekje