Let an AI (NPC Spawner) target a destructible object or Objective Device

I’m trying to figure out how to create custom behavior scripts, even though they are still in Beta. (Also, I don’t see anything on the roadmap for a stable version of the NPC Spawner?)

I want my Guards to attack an Objective Device when it’s in range, after a patrol, for example.

I understand that you can let the AI attack something using a target_info.
(https://dev.epicgames.com/documentation/en-us/uefn/verse-api/fortnitedotcom/ai/target_info) And I do see the target can be an “Entity” instead of an “Agent”. So, I assume this means it can be anything? Is this correct?

The provided example code on the documentation (https://dev.epicgames.com/documentation/en-us/uefn/create-custom-npc-behavior-in-unreal-editor-for-fortnite) only shows how to let the AI walk to different points, but I don’t find example behavior Verse code to make it attack targets.

1 Like

Did you resolve it :D? if yes could you share how? thx xo

I was unable to resolve this issue. As I understand this functionality is not yet available. What I’ve implemented now using Verse is to check every X seconds if there are NPC’s inside a certain radius around the Objective and then Damage it manually. However it’s not very ideal as visually the NPC is not attacking it. But the Objective is getting damage every X seconds.