# What is wrong with this code? (verse)

**URL:** <https://forums.unrealengine.com/t/what-is-wrong-with-this-code-verse/1157989>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, editor, question, fortnite\
**Created:** [May 7, 2023, 7:05pm UTC](https://forums.unrealengine.com/t/what-is-wrong-with-this-code-verse/1157989 "2023-05-07T19:05:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrcjwilliams7-mr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mrcjwilliams7-mr](https://forums.unrealengine.com/u/mrcjwilliams7-mr)\
**Post date:** [May 7, 2023, 7:05pm UTC](https://forums.unrealengine.com/t/what-is-wrong-with-this-code-verse/1157989/1 "2023-05-07T19:05:30Z")

</div>

Hi, i have followed Wahlbeck Warforge tutorial on Youtube, on how to make enemy props follow you. I have a problem that I don’t know how to fix. Please can someone help me?

 ![Verse_problem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/2/db2ebf7c50d63c508557743e71800c6c58c47f06.jpeg)

---

<div class="post-metadata">

**Author:** ![Resykz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/resykz/32/677389_2.png) [@Resykz](https://forums.unrealengine.com/u/Resykz)\
**Post date:** [May 7, 2023, 8:22pm UTC](https://forums.unrealengine.com/t/what-is-wrong-with-this-code-verse/1157989/2 "2023-05-07T20:22:45Z")

</div>

You need to define the `FollowPlayer` method in your `GameManager` creative class. So the same way you have declared `InitPlayers` and `InitEnemies`, add the following:

```auto
FollowPlayer(Enemy:creative_prop, Player:agent):void=
    // code to follow the player

```

This obviously doesn’t do anything but it should remove the error as the method is now defined. It’s under the assumption that `Enemy` is a `creative_prop` based on the `@editable` property declaration and `Player` is an `agent` type.

I’m guessing the tutorial must cover the `FollowPlayer` method logic, I haven’t watched it myself so I don’t know the format of the tutorial, but it may be a good idea to run through it again so see if there’s anything you might have missed.
