# Issue using TMap as a parameter for Multicast Delegate

**URL:** <https://forums.unrealengine.com/t/issue-using-tmap-as-a-parameter-for-multicast-delegate/417098>\
**Category:** AI\
**Tags:** multicast, tmap, unreal-engine, delegate, dynamic, question\
**Created:** [February 12, 2018, 12:59pm UTC](https://forums.unrealengine.com/t/issue-using-tmap-as-a-parameter-for-multicast-delegate/417098 "2018-02-12T12:59:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pakyman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pakyman](https://forums.unrealengine.com/u/Pakyman)\
**Post date:** [February 12, 2018, 12:59pm UTC](https://forums.unrealengine.com/t/issue-using-tmap-as-a-parameter-for-multicast-delegate/417098/1 "2018-02-12T12:59:03Z")

</div>

Hello, I’m trying to set a TMap as a parameter for a Dynamic Delegate but compiler gives me

FEquipmentset ’ - type must be a UCLASS, USTRUCT or UENUM

error.

` typedef TMap FEquipmentSet;

```
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnEquipmentStateChanged, EEquipmentState, NewState, FEquipmentSet, EquipmentConfiguration);` 

```

Any idea of the reason?

---

<div class="post-metadata">

**Author:** ![lastenemy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lastenemy](https://forums.unrealengine.com/u/lastenemy)\
**Post date:** [January 19, 2021, 12:37am UTC](https://forums.unrealengine.com/t/issue-using-tmap-as-a-parameter-for-multicast-delegate/417098/2 "2021-01-19T00:37:44Z")

</div>

Unfortunately, as UnrealHeaderTool doesn’t understand typedefs. In that case, you should put your map inside a USTRUCT and then pass that instead.
