Once again, spawning new NPCs has become the bane of my existence. Honestly, I don’t know what’s wrong or why it won’t spawn. It seems that I’ve used identical code before and had better results. There aren’t even any errors flagging.
Draw a debug sphere using the transform you’re feeding to the spawn node:
- does it show up?
- does the location make sense?
- is there enough space?
- does using
relativelocation of a mesh make sense?
Not even going to ask what Get All Actor of Class is doing there since it’s doing nothing.
Its for another part I haven’t written yet. However, I have an identical code to this one that is spawning perfectly. So I’m a bit at a loss.
Will you clarify the bullet points?
There’s nothing wrong with the script you’re showing. Not sure what kind of mind-reading miracle you’re expecting
. We need something to work with, to dig deeper and debug.
The issue was using the relative location. In other versions of the script I put the spawn transfer location coordinates in and didn’t run them off of a variable. Ultimately, doing that again fixed the issue.
