How would I fix enemies to surface?

Image 1: I would like the enemy AI to cast to the player while staying on the surface.

Image 2: This is how the player stays on the surface while moving. (Stardust HD in Blueprints - Unreal Engine - YouTube)

Does anyone know what I need to add the the AI blueprint to get it to behave like the players restraint?

  • Add a trigger volume for each “surface” area and place them so that a player stepping on/off of that surface will trigger them.

  • Set a variable in the Character blueprint …eg “SurfaceType” [int]

  • On Overlap of these volumes, set the appropriate value.

  • Then when you have the enemy AI cast to the character, Get SurfaceType from the result and see if the player is standing on that surface.