Click or drag to resize
AnimalBeginMoving Method

Method used to command a creature to begin moving towards a specific location at a specific speed. The actual movement operation may take several turns, but is always initiated using this method. Your movement location should be within the world boundary and your movement speed should be less than or equal to your creature's Species.MaximumSpeed.

Once called the creature will begin moving towards the specified point. This movement will continue until you issue a different BeginMoving command to your creature, it reaches its destination, or becomes blocked by something. Any calls to BeginMoving will clear out any previous calls, so care should be taken when issuing multi-part path movements.

Once the movement is completed the MoveCompleted event will be fired and your event handler for this function will be called if you've provided one. The event handler will provide full information about the results of an attempted movement operation.

Namespace: Terrarium.Sdk.Classes.Creature
Assembly: Terrarium.Sdk (in Terrarium.Sdk.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public void BeginMoving(
	MovementVector vector
)

Parameters

vector
Type: Terrarium.Sdk.Classes.CreatureMovementVector
The MovementVector that determines the point you are moving to and how fast to move there.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if the vector parameter is null.
OutOfBoundsException Thrown if the destination is outside of the world boundaries.
TooFastException Thrown if the speed defined in the vector is greater than Species.MaximumSpeed.
See Also