Click or drag to resize
AnimalWithinAttackingRange Method

Used to determine if your creature is within range to attack 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 WithinAttackingRange(
	AnimalState targetOrganism
)

Parameters

targetOrganism
Type: Terrarium.Sdk.Classes.StateAnimalState
OrganismState of the creature you're thinking of attacking.

Return Value

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