Click or drag to resize
AnimalWithinEatingRange Method

Used to determine if your creature is within range to eat another target creature.

This method does not attempt to validate the position of the organismState with respect to the current world state. If you pass a stale object in then you may get stale results. Make sure you use the LookFor method to get the most up-to-date results.

Namespace: Terrarium.Sdk.Classes.Creature
Assembly: Terrarium.Sdk (in Terrarium.Sdk.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public bool WithinEatingRange(
	OrganismState targetOrganism
)

Parameters

targetOrganism
Type: Terrarium.Sdk.Classes.StateOrganismState
OrganismState of the creature you're thinking of eating.

Return Value

Type: Boolean
True if the creature is within range to eat, False otherwise.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if the targetOrganism parameter is null.
See Also