Getting unknown when trying to spawn AI from class, works on one level but not the other

Hey guys,

So In my project I have a blueprint class for an AI unit, I created a blueprint for a spawn zone. Every few seconds it spawns a unit from in a radius.

Everything works in one level. But then I created another level (landscape) and suddenly I don’t see any units spawned, when I debugged it I just get “Unknown” from the output node of the Spawn AIFrom Class node.

Any ideas on how to debug it? and why it might happen?

Here is an example when everything is working properly:

image

Here is an example when it fails:

I don’t know why, in particular, but it’s becaue this variable is not set

image

Hey @ClockworkOcean It is set, I even tried setting a class without the variable :frowning:

Ok, then you need to click the link ( last word ) in the right hand side of the error message. It takes you to the offending node…

@ClockworkOcean It done nothing :sweat_smile:

Can you show me the error?

@ClockworkOcean I don’t see an error just getting unknown, and when I try to cast it to my AI Class it fails.

We can jump on a discord channel and I’ll show you if thats easier :sweat_smile: I really appreciate your efforts

Not a good time for that rn, afraid…

Have you tried it without the debugger? ( don’t trust it ).

@ClockworkOcean Yeah, No errors just getting unknown, I think this is happening because the class is unknown in this level, since I copied the items from another.
I’m still a noob at this, But what I did was take the assets from my other level and just paste them in this one.

A class is a class, it only needs to be in the content browser. And you’re spawning it :slight_smile: So there is one.

I’m wondering if the location is a bit low, or in an object etc?

What do you mean?

I think maybe it won’t spawn because the location you’re feeding it is no good. Did you try ‘no collision fail’?

2 Likes

Holy ■■■■, youre my hero that worked :joy:

boom :sunglasses:

Have a great one man, thanks alot

1 Like