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.CreatureAssembly: Terrarium.Sdk (in Terrarium.Sdk.dll) Version: 1.1.0.0 (1.1.0.0)
Syntaxpublic bool WithinAttackingRange(
AnimalState targetOrganism
)
Public Function WithinAttackingRange (
targetOrganism As AnimalState
) As Boolean
public:
bool WithinAttackingRange(
AnimalState^ targetOrganism
)
member WithinAttackingRange :
targetOrganism : AnimalState -> bool
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
See Also