Spawn actor replication [BP]

Hello!

I need some help with replication. First off, I want to explain whats happening: An actor is spawning a other actor, should then give him the same tag as it has himself (teamname) and should then change the material based on the tag.

I already checked a few things and the problem seems to be that the set array element doesnt work.
(I checked with textrenders the tags of the thing that spawns the things, and thos have the correct names) Just the “Set Array Elem” doesnt do as I thought it would. (again confirmed by a text render component)

So wheres my misstake?

(PS: it works on the server as it should)

€dit1: allright, on the client the spawned stuff is grey and then goes its way (it has a Ai that moves it) but one of them is hanging in correct colors at the spawnpoint!!! when i unchecked the “spawn even if colliding” i get "accessed none “call function finish spawning actor” … etc error messages.

I solved it by using another variable called teamname, set it on rep notify. I now handle the material logic in the notify function (in the minion - the spawned actor itself) so everytime the variable gets changed it will call the materilachange function on all clients too - here a screenshot:

I made the function that spawns the minion to “NOT REPLICATE” and only executable by authority [with authority switches] (since the actor itself is replicating that works great)

The whole spawn actor event looks still the same, except that all that now comes after “set array elem” is “SETw/notify” on the teamnamevariable that I talked about in the beginning.