AnimalIsMySpecies Method |
Allows a creature to determine if the OrganismState of another creature represents the same species. This can be used to determine whether you should attack/defend against another creature.
Creatures of the same species often don't fight one another, defend against one another, and kill one another. They often help their own species in fights against other species. Carnivores of the same species may sacrifice themselves as food once they become too old to members of their species.
Namespace: Terrarium.Sdk.Classes.Creature
Exception | Condition |
---|---|
ArgumentNullException | Thrown if the targetState parameter is null. |