How do I turn on the light if an item is spawned inside volume

Hi, I wanted to use indicator point light for each room, that an item is spawned in. But I can’t get it to work. How would you approach it?



1 Like

Just remove this chunk

You don’t need that ‘get all actors’ stuff, because you already have a reference to the light in the BP. You can just turn it on or off :slight_smile:

The problem is, that even if item is spawned, it doesn’t trigger the light function. I’m sorry, I’m an absolute noob at UE5

I managed to get the light turning on to work, basically by making it simpler. Now the problem is that when i cast to fp character it works perfectly fine, but casting it to my BP_Artifact, which should spawn in the trigger volume, doesn’t trigger the light to turn on

1 Like

Both actors need an overlap volume for it to work?

Actually not, the BP_Artifact’s mesh collision is set to defeault for it to work, it also has a box collision for “E prompt to interact” widget, and the Light Indicator volume uses overlap.

I figured out that items spawn on begin play, I tested out my theory, and it works, well kinda. The thing is that the volume I use needs like, an update of some sort. I put two spawned artifacts in one volume, the light was off. When I picked one up the light was on. So my solution was to put a next tick delay on spawn of the object, and it works. Anyway thanks for your help @ClockworkOcean.

1 Like