# Damage an agent to put them to spectator

**URL:** <https://forums.unrealengine.com/t/damage-an-agent-to-put-them-to-spectator/1068023>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [April 16, 2023, 6:16pm UTC](https://forums.unrealengine.com/t/damage-an-agent-to-put-them-to-spectator/1068023 "2023-04-16T18:16:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FinestCreative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/finestcreative/32/1034971_2.png) [@FinestCreative](https://forums.unrealengine.com/u/FinestCreative)\
**Post date:** [April 16, 2023, 6:16pm UTC](https://forums.unrealengine.com/t/damage-an-agent-to-put-them-to-spectator/1068023/1 "2023-04-16T18:16:24Z")

</div>

Is there a way to damage an Agent without using a creative Device. I am trying to make a newly joined player go into spectator by eliminating them if they join in round 2.

---

<div class="post-metadata">

**Author:** ![FinestCreative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/finestcreative/32/1034971_2.png) [@FinestCreative](https://forums.unrealengine.com/u/FinestCreative)\
**Post date:** [April 16, 2023, 6:49pm UTC](https://forums.unrealengine.com/t/damage-an-agent-to-put-them-to-spectator/1068023/2 "2023-04-16T18:49:36Z")

</div>

Ah I found it

```auto
using { /Fortnite.com/Characters }
DamagePlayer(Inagent: agent): void =
        if(fortcharacter:= Inagent.GetFortCharacter[]):
            fortcharacter.Damage(5.0)

```
