The template now supports simple grab mechanics between enemies and player. An enemy grab renders the player useless temporarily and performs periodic attacks.

Creating an enemy grab

To define an enemy grab 3 animations are needed :

(GrabInto is optional, the enemy can go directly to GrabLoop)

Untitled

A new grab ActorState needs to be added to the enemy state list. This state has to be of class EnemyStateGrab and reference the GrabInto animation state (AnimState_Enemy_Grab in the image below).

Untitled

These state class defines many attributes of the grab as show below:

Untitled

The most important are: