I’m trying to set up an item spawning system, similar to that of Lethal Company. I’ve already got a spawning system set up that can spawn a random item actor from an array, what I’m having trouble with is the item information part. I want each random item that spawns have their own value range that randomly gets set on spawn. So far when I spawn items similar items all have the same value. Does anyone know of any good tutorials that can help me?
That ended up working, thanks for the help. You wouldn’t by chance know how to get a widget to update the values for each individual item? For example, 3 cubes spawn in and each of them rolls their own value (Cube1: Value = 10, Cube2: Value = 27, Cube3: Value = 2). How would I use a widget to display each of those values when I get within interaction range?
I’ve already have an interaction system set up, so when I get close enough with an overlap of a Collision zone or line trace the widget shows up. But the widget only displays the value from one of the items.
great i’m glad it worked.
i think maybe open another question for that.
but if i understand correctly, once you get a collision, there’s a function on the collider to get all objects that are currently overlapping or colilding.
notice you might have to change collide with overlap.
or you might need to add a widget to each of those objects.
it depends on how you’ve implemented it. try to show the source too.
Personally I’d have the class that is spawning the item be the one to apply/set any of its random values. Spawned items need to be as free of bloat as possible.