# Get id name to trigger the box collision

**URL:** <https://forums.unrealengine.com/t/get-id-name-to-trigger-the-box-collision/506581>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4-27, question, box-overlap\
**Created:** [March 14, 2022, 4:01am UTC](https://forums.unrealengine.com/t/get-id-name-to-trigger-the-box-collision/506581 "2022-03-14T04:01:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wachaoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wachaoo](https://forums.unrealengine.com/u/Wachaoo)\
**Post date:** [March 14, 2022, 4:01am UTC](https://forums.unrealengine.com/t/get-id-name-to-trigger-the-box-collision/506581/1 "2022-03-14T04:01:04Z")

</div>

Hi everyone.!  
So i create a bp class of a truck and create multiple childs of that bp class to create alot of diffirent truck. Then i create a box collision of bp actor to spawn a container so i know every bp class have a id names are there anyways to get that id names to trigger the box collision i want.  
Not every truck can spawn the container except the truck with the id name i want can spawn their container.  
Thank youu!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 14, 2022, 9:25am UTC](https://forums.unrealengine.com/t/get-id-name-to-trigger-the-box-collision/506581/2 "2022-03-14T09:25:42Z")

</div>

If these are blueprints, then just make the ID an integer in the blueprint 🙂

---

<div class="post-metadata">

**Author:** ![Wachaoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wachaoo](https://forums.unrealengine.com/u/Wachaoo)\
**Post date:** [March 15, 2022, 11:49am UTC](https://forums.unrealengine.com/t/get-id-name-to-trigger-the-box-collision/506581/3 "2022-03-15T11:49:35Z")

</div>

Sorry for late reply !  
So you only can create a valriable for the bp to specify it. I can’t get the id name if i want?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 15, 2022, 12:16pm UTC](https://forums.unrealengine.com/t/get-id-name-to-trigger-the-box-collision/506581/4 "2022-03-15T12:16:52Z")

</div>

Name and id are not reliable. Make your own integer ID. That way, you know what’s going on.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/1/5115228d99f9e37ee2073d091f46ac1cb42f9ad4.jpeg)

and you can always use a BP to number them if there’s a lot…

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 15, 2022, 12:20pm UTC](https://forums.unrealengine.com/t/get-id-name-to-trigger-the-box-collision/506581/5 "2022-03-15T12:20:08Z")

</div>

> [@Wachaoo](#):
>
> I can’t get the id name if i want?

You can use a tag:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/d/1cd58a96b137e5768ad19aefaccb88b4713a48c2.png)

It’s a Name property.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 15, 2022, 12:20pm UTC](https://forums.unrealengine.com/t/get-id-name-to-trigger-the-box-collision/506581/6 "2022-03-15T12:20:55Z")

</div>

or that…

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 15, 2022, 1:02pm UTC](https://forums.unrealengine.com/t/get-id-name-to-trigger-the-box-collision/506581/8 "2022-03-15T13:02:05Z")

</div>

So when the truck spawns a container, it gives it the same ID or tag as itself.

---

<div class="post-metadata">

**Author:** ![Wachaoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wachaoo](https://forums.unrealengine.com/u/Wachaoo)\
**Post date:** [March 15, 2022, 1:10pm UTC](https://forums.unrealengine.com/t/get-id-name-to-trigger-the-box-collision/506581/9 "2022-03-15T13:10:44Z")

</div>

thanks for the reply but if i have a SpawnPoint to keep spawning the bp truck so i can’t set the default ID for each that truck.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 15, 2022, 1:13pm UTC](https://forums.unrealengine.com/t/get-id-name-to-trigger-the-box-collision/506581/10 "2022-03-15T13:13:30Z")

</div>

I think you can. Spawn a truck, give ID = n, spawn next truck, give it ID = n + 1

Can you do that?

---

<div class="post-metadata">

**Author:** ![Wachaoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wachaoo](https://forums.unrealengine.com/u/Wachaoo)\
**Post date:** [March 15, 2022, 1:17pm UTC](https://forums.unrealengine.com/t/get-id-name-to-trigger-the-box-collision/506581/11 "2022-03-15T13:17:59Z")

</div>

Let me try that maybe i get over complicated.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 15, 2022, 1:58pm UTC](https://forums.unrealengine.com/t/get-id-name-to-trigger-the-box-collision/506581/12 "2022-03-15T13:58:05Z")

</div>

How many trucks are there? If it’s 20 or so trucks you could use enumeration - efficient and not prone to typos. If it’s a TRUCKLOAD, that’d become a nuisance rather quickly.
