Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Peasants stop and play animation:

In this example, the Peasant will run to a point, then upon arrival, play one of three random animations. Most of the nodes up to the Random Switch were covered in the previous example, so I will be jumping ahead to the NPC Play Anim actions in the breakdown.

Image Added


NPC Play Anim is an action that will allow you to drive the animations on an NPC bot using any of the game's animations. The properties window will reveal a multitude of options. 

Image Added

 

By going into the Content Browser and filtering 3p, you can bring up the AnimSet "ANIM_3p_NPC". Double Click the AnimSet Icon highlighted below.

Image Added

 

In the Mesh tab of the AnimSet viewer, set the Skeletal Mesh to SK_NPC_Peasant01. This is mainly for previewing the animations.

Image Added

 

Change the tab of the Browser to Anim. Make sure it is set to ANIM_3p_NPC. From here, you can preview the animations, and more importantly, grab the file name for the NPC Play Anim action in Kismet. You can Right Click the name of the Animation in the Sequence Browser, and click "Copy Sequence Name to Clipboard".

Image Added

 

Return to Unreal Kismet. Select the NPC Play Anim action, and paste the animation name, in this case "3p_NPC_noblecower02". There are various other settings here, most of which are explained by tool tips when moused over. For this example, just mimic what is checked off below.

Image Added

All Peasants dying completes the Kill Objective:

...