# Assigning the generated animals an arbitrary trajectory to the targets

**URL:** <https://forums.unrealengine.com/t/assigning-the-generated-animals-an-arbitrary-trajectory-to-the-targets/833259>\
**Category:** Programming & Scripting\
**Tags:** fortnite-creative, question, fortnite\
**Created:** [March 30, 2023, 1:56am UTC](https://forums.unrealengine.com/t/assigning-the-generated-animals-an-arbitrary-trajectory-to-the-targets/833259 "2023-03-30T01:56:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avenom](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/avenom/32/640777_2.png) [@Avenom](https://forums.unrealengine.com/u/Avenom)\
**Post date:** [March 30, 2023, 1:56am UTC](https://forums.unrealengine.com/t/assigning-the-generated-animals-an-arbitrary-trajectory-to-the-targets/833259/1 "2023-03-30T01:56:39Z")

</div>

I want the generated animals to set a trajectory on which they will start walking after appearing. Provided that moving along it, if they meet a certain structure, they will attack it, as soon as the structure is destroyed they will go further along the trajectory until they meet another one, and so on.  
Also, I need the animals to be 2 types: from the team of players 1 and from the team of players 2 and attack players (opposite team) that get in their way, but as soon as the player is away from the path a certain distance they continued on the specified path.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/0/5802cac72822df26adb22a5bf1bf190b5c4dc4d4.jpeg)
