This is an old revision of the document!
Pawn
A pawns is an entity that can fight into an arena (player, sidekick, enemies, etc). It is a resource and must be placed in the Resource folder.
It contains several scripts:
PawnBehavior
The pawn behavior is the main script of every pawn as it is the one containing an update method. All the other scripts only contains data.
Properties
CharacterId : only used for pawns controlled by the player. It is a unique id that must be set. It can be ignored for pawn controlled by AI.
State : This is the initial state for the pawn. Usually it is “Idle”.
Attack Description : The attack to execute when the “Attack” option is chosen for the pawn.
Attack Anchor Radius : This is the radius of a imaginary sphere containg the mesh. It is used to compute the displacmeent of a pawn when doing a close range attack so two pawns never penetrate each other.
Animation State : For each state, you must specify an animation to play with an animation trigger and an animation state name. This means that the pawn as to have a Animator with a animation graph. If no animation is necessary for a given state, leave blank.