Hey, let me just pipe back up here for a second, @doctorpepperdan was saying everything I had planned to say when I read your reply post until we got to âGet Actor of Classâ.
Get Actor of Class I believe only returns the first of an actor of that class in the world outliner. No good when you need a SPECIFIC one.
Also, you do NOT have to use a behavior tree/blackboard. Especially if theyâre simple pawns, all a blackboard/behavior tree is is a different UI to do the same things, when it gets complicated theyâre incredibly more useful, but for things like this theyâd probably be overkill.
What they were saying, @GhostInTheCommu, is you put the âGET OWNERâ node on the creature. If you plug in âSelfâ on the spawner into the spawned actor, that registers the spawner as âOwnerâ to the creature.
So, if you do that, âGet Ownerâ gets the Owner, which would be the spawner. But thereâs a better way.
On your creature, make a variable âSpawner Refâ of your spawner class.(1) Then make that âInstance editableâ and âExpose on Spawnâ.(2)
Now, when you go to spawn the creature, there will be that variable, exposed on spawn, see: (3)
Pass in âSelfâ which here would mean âME, I AM THE SPAWNERâ and auto-sets that value on the spawned creature.