Overview
This trigger fires an event whenever the target's currently played motion reaches a tagged frame.
For example, a motion has a tag called "step_right" on the 34th frame. Whenever the target of the anim event trigger plays that motion, the trigger will fire an event on the corresponding frame. This trigger is especially useful for synchronizing animation and sound and/or synchronizing several animations.
activate | Activates the trigger. |
deactivate | Deactivates the trigger. |
Outputs
Event | An event is fired from this output whenever the block is triggered. |
Refs
Target | The object that plays the animation with tags that we need to monitor. |
Properties
Event | The name of the anim event in the target that will fire the trigger. You can view and edit anim tags on any given motion using the Model Editor tool. |
Usage examples
For example, you want an NPC to open a door with an animation.
1. You should tag the NPC model and the door open animation, and place them on the level. Select the door open animation as the Startup Animation for the NPC entity.
2. Place the model of the door with the open animation on the level.
3. Create a VS for the door with a trigger/entity/anim block. Pay attention to the field event, it should be the same as the tag from step 1. You can use the field List with button Select to choose the proper tag. Also, don't forget to link the target's pin to its entities.
4. Align the position of the NPC and the door. Check the result by pressing Simulate or To Game.
Shortcuts
See also