Cant call events in LevelBP With BPInterface

i want to spawn cubes randomly in specified target points one after another when i hit it
i can use the target points through level blueprint so my whole script for spawning is there and i should have a custom event for it
the problem is iam calling the function from cube but event is not being executed in levelBlueprint?
what is the issue?
is there any alternative to this?
Event dispatchers only spawn it once
Screenshots are levelBP,BPInterface,CUBE from which i am seding message respectively…
337470-
][1]

Just put the level BP code in an actor, then you can call an interface on it… :slight_smile:

how i dont get it?

cant get reference to target points in actor thats why

Making function with thee same name is not enough. An actor must implement a given interface if you want to perform interface calls. And the Level (World) is not an actor, therefore it cannot implement any interface, and so you cannot perform interface calls to the level.

Actor may have references to target points: just create variables of type Target Point and make them Exposed. Then you’ll be able to select the target point you need after placing the actor into the level.

but i have implemented interface in levelBP its availabel

can you elaborate more on referencing target points iam a noob

Okay, I see that you can make the level implement interfaces, but you need to reference it somehow to send an interface call to it, and you can’t do that in Blueprints.

As for target points: in your Cube BP, create a variable, select its type: Target Point (you may need to search for it in the dropdown menu).

In thee variable Details, check Instance Editable (and Expose on Spawn is you want to spawn it with Target Points).

Now when you add a BP to the level, in its details you’ll see your target point variable, and you can select any target point in the level for it.

And when you select its class to spawn, you’ll have an additional option - the same target point variable.

Hope this helps.