Check if actor is spawned by class

In trying to check if an actor is already spawned but its not working.

My Idea was to run my “Robot spawn Ref” (this is where i store the actors that has been spawned and use as a ref to access them later) thru a loop to compare its class to “actor class array” (Where i store the classes that is going to be spawned). But since there is nothing in the “Robot spawn Ref” (Print string shows 0) my code isnt moving on past the first loop.

Hope someone can point in the right direction! Thanks

If you want to spawn one of each type of actor

If you want to spawn the missing actor types

where check spawn is

I have another function (not visible sorry about that) that sets the type of actor class to spawn. (basiclly just press a key and set class) and i wanna see if that class has been spawned already, if true do nothing, if false spawn.

Hope that makes sense?

1 Like