Random Item Code - What's wrong?

I’m working on a blueprint that HOPEFULLY will spawn an actor within a chosen area.

The code should make a box that chooses an enclosed vector. This vector should tell the spawn actor node to create an actor in that location, now that I look at it I think it might have something to do with the random point in bounding box node? like maybe it doesn’t refresh to get a new vector..

Either way the actor ISNT spawning and I DO want it to spawn. Any ideas?

Hey @CyberPanda1670!

So you’re binding the event “spawn another_Event” to an event somewhere on a BP_Item_Interact called “Spawn Another”. So you need to call “Spawn Another” from the BP_Item_Interact, AND this will only work on the first actor of class found.

Then again, you have told us that you want it to randomly spawn an actor, but we will probably need more context to help you. :frowning: something just not happening is a lot harder to figure out than something is happening, just happening strangely, if that makes sense.

Get back to us with some more context! :slight_smile: Maybe show that event that you’re binding to, as well?

Thanks so much!

I have the call node in my other blueprint and I debugged it a bit by having it output a random vector through a print string. Like you said, I noticed it only outputted the string the first time.

Here’s the event I’m binding too

I don’t know how much you need so I just did the whole screen lol.

I know the rest of it works because I inserted this new event dispatcher today, and the code after it works too.

Is there any way to make it output every time rather than only working on the first actor of class found?

I found a video that tells me a better way of approaching my issue. I actually thought of doing it this way but I wrongly thought it would be to hard to do lol :laughing:

Thank you none the less for being willing to help me @Mind-Brain

I wont quite mark it as solved yet until I implement the code and see if it works for my purpose… I’ll check in later..