It's matter of flagging condition by a boolean or any other parameter that meets condition. You can also compare things to decide an action that needs to be performed. Depends on how the spawning system you are set, adding extra condition probably the way to go.