Hey folks! This question is sortof a follow-up/related to [this][1] thread.
I’m spawning actors from enemies once the enemy dies. I need to set an interger after spawning so that I can number the spawned actors. I need them numbered because I need to place them in sockets in a specific order. If you want a better explanation on what I’m trying to achieve, please see the above mentioned thread!
My problem right now is that even though I set the integer after I’ve spawned the actor, when I’ve placed the first actor in it’s socket, and pick up and try to place another spawned actor, it won’t place the one “I’m holding”, but instead it moves the placed actor to the next socket. Anyone knows where I’m going wrong? I’m very new to programmin so there might just be something that I’ve missed!
My blueprints for y’all;
This is where I spawn the actors, inside the enemy AIs BP. As you can see, I’ve set the number of the actor after each of them (I have six) is spawned. I’ve also tried to set in which Piece Number it is inside the spawn nodes, but that hasn’t worked either.
This is the event for when the player “picks up” the actor, and sets that actor to the one they’re “holding”. This is inside of the spawned actors BP.
This is where I “place” the actors in sockets on a wall. This is where I need the specific actor my character “is holding”.
Sorry for a long and a lil messy post. Been working all day trying to figure this out but to no avail. Hopefully one of you can shed some light on this for me! Thanks in advance!