# How to check exact type of Guard?

**URL:** <https://forums.unrealengine.com/t/how-to-check-exact-type-of-guard/2053110>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [October 4, 2024, 3:42pm UTC](https://forums.unrealengine.com/t/how-to-check-exact-type-of-guard/2053110 "2024-10-04T15:42:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![veshalololo1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@veshalololo1](https://forums.unrealengine.com/u/veshalololo1)\
**Post date:** [October 4, 2024, 3:42pm UTC](https://forums.unrealengine.com/t/how-to-check-exact-type-of-guard/2053110/1 "2024-10-04T15:42:16Z")

</div>

I want to have different behaviuor depending on type of eliminated guards.  
For example, I have Shadow Guard, Ghost Guard and Grotto Guard. I have a function like: OnGuardCompletedPath(Agent:agent):void. I want to make switch condition based on the exact type of a guard, something like:

> OnGuardCompletedPath(Agent:agent):void =  
> match Agent.Type  
> ShadowGuard =\> Print(“Shadow Guard”)  
> GhostGuard =\> Print(“Shadow Guard”)  
> GrottoGuard =\> Print(“Shadow Guard”)

How to do it in Verse?
