How to check if the structure is a spawn emmiter. "green/red model"

Bump.

I really need to find a way if the structure is “spawm emitting”… im using the term spawn emitting. because i dont know what else to call it.

When you are about to place out a structure. its green or red. based on if its allowed to be placed or not.
This model uses the same mesh as your structure when its placed.
The only differance is that it uses another material while its not fully placed out… (green / red)

You may ask. why do you need to check if the structure is spawn emitting?

Basically because. if you make a graph on your structure that does something with the event “Begin Play”
This event will be executed while its spawn emitting.
So the event “Begin Play” will be executed 2 times.
One time when its spawn emitting and one more time when its placed out.

Now. i need to prevent that the code in my event (Begine Play) is executed if the structure is in spawn emitter mode.
I also tried to use a Get Named Material. and check that with my Material name, but using the function “Get Named Material” alway crashes the dev kit.

Anyone got an idea how i can do this??