Adding spawnpoints into a map

How would I go about using info_player_orange as a spawnpoint entitiy in a map?



team.SetSpawnPoint( TEAM_ORANGE, "info_player_orange" )


I have an entity in my map called info_player_orange with a KV of targetname info_player_orange and I still can’t spawn there, any reason why?