# Make character hold a specific item when ever a particular map is loaded?

**URL:** <https://forums.unrealengine.com/t/make-character-hold-a-specific-item-when-ever-a-particular-map-is-loaded/472631>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [October 9, 2020, 12:43am UTC](https://forums.unrealengine.com/t/make-character-hold-a-specific-item-when-ever-a-particular-map-is-loaded/472631 "2020-10-09T00:43:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8c3a21d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8c3a21d4](https://forums.unrealengine.com/u/anonymous_user_8c3a21d4)\
**Post date:** [October 9, 2020, 12:43am UTC](https://forums.unrealengine.com/t/make-character-hold-a-specific-item-when-ever-a-particular-map-is-loaded/472631/1 "2020-10-09T00:43:15Z")

</div>

What is the best way to make a player character start out with an item depending on which Level they are in?

I want to make it possible for the player character to hold a specific item when ever I load up a particular level map in the UE4 editor.

I was originally planning to attach the item to the player character’s hand socket in their character blueprint, but then It came to my mind that maybe then the character itself would always hold that item. What would be the best way to approach this?

---

<div class="post-metadata">

**Author:** ![Marcis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcis/32/1103070_2.png) [@Marcis](https://forums.unrealengine.com/u/Marcis)\
**Post date:** [October 9, 2020, 2:11am UTC](https://forums.unrealengine.com/t/make-character-hold-a-specific-item-when-ever-a-particular-map-is-loaded/472631/2 "2020-10-09T02:11:29Z")

</div>

Maybe not the best way but a quick and easy way:

Then you can do something based on the string

![317835-switch.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/b/08b45c38025c635fce8e7b229111925471843a07.png)

---

<div class="post-metadata">

**Author:** ![Marcis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcis/32/1103070_2.png) [@Marcis](https://forums.unrealengine.com/u/Marcis)\
**Post date:** [October 9, 2020, 11:19am UTC](https://forums.unrealengine.com/t/make-character-hold-a-specific-item-when-ever-a-particular-map-is-loaded/472631/3 "2020-10-09T11:19:50Z")

</div>

Your you can just use get level name in your character BP and use that.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [October 9, 2020, 5:36pm UTC](https://forums.unrealengine.com/t/make-character-hold-a-specific-item-when-ever-a-particular-map-is-loaded/472631/4 "2020-10-09T17:36:29Z")

</div>

Level DB approach.

Create an actor class (Level DB) that has a variable for the item (actor class reference). Add the actor to your levels and configure it. In the gamemode: get all actors of class (level db) → get index (0) → get item var.

When you spawn the character pawn in game mode (possess controller etc) spawn the item and attach it to the pawn.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8c3a21d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8c3a21d4](https://forums.unrealengine.com/u/anonymous_user_8c3a21d4)\
**Post date:** [October 13, 2020, 10:16pm UTC](https://forums.unrealengine.com/t/make-character-hold-a-specific-item-when-ever-a-particular-map-is-loaded/472631/5 "2020-10-13T22:16:55Z")

</div>

Hey, Thanks a lot for your response. How can I create a Level DB actor? Are you referring to DataBase, like an item database sheet?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8c3a21d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8c3a21d4](https://forums.unrealengine.com/u/anonymous_user_8c3a21d4)\
**Post date:** [October 13, 2020, 10:18pm UTC](https://forums.unrealengine.com/t/make-character-hold-a-specific-item-when-ever-a-particular-map-is-loaded/472631/6 "2020-10-13T22:18:38Z")

</div>

Thank you for your reply and for sharing this. I will look into it.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [October 14, 2020, 3:41am UTC](https://forums.unrealengine.com/t/make-character-hold-a-specific-item-when-ever-a-particular-map-is-loaded/472631/7 "2020-10-14T03:41:19Z")

</div>

A level DB is simply an bp actor class with nothing other than data in it.
