Hi everyone! I’m trying to create an event in which when you overlap a collision box, an actor will spawn within the collision box. I’m having some trouble with the spawn actor node as it requires a transform variable. I don’t know how to set a box collision as the transform location. I know I could set it to a world location, however the collision box itself is within another actor and my goal is to have that actor able to be placed anywhere in the world so it is quite important that the new actor spawns within the collision and not just a fixed world location.
Goal: When player passes over collision box within the “crop plot” a new actor “carrot” will be spawned within box.
Question: How do I set transform variable to be box collision location?
Okay so actually I got it to spawn I grabbed the world location of the box. Now I’m wondering how to make it spawn only once? It spawns repeatedly as I stand in the box.
To make it super simple, you can add another variable type boolean eg. CropSpawned, and stick a branch at Collision event before you spawn the crop. False would go to your spawning node, true you can leave empty or do print to verify it’s working.
After you spawn your Crop you set the variable to true.
Screenshot below for reference.
You are a life saver and I owe you my first born
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.