Replication and owner

Hello, i try to spawn Ai on map replicated but i get this error.

LogActor: Error: SetOwner(): Failed to set ‘BP_AIMoveTest_C_0’ owner of ‘BP_AIMoveTest_C_0’ because it would cause an Owner loop
LogActor: Error: SetOwner(): Failed to set ‘BP_AIMoveTest_C_0’ owner of ‘BP_AIMoveTest_C_0’ because it would cause an Owner loop
LogActor: Error: SetOwner(): Failed to set ‘BP_AIMoveTest_C_0’ owner of ‘BP_AIMoveTest_C_0’ because it would cause an Owner loop

The blueprint looks like this

in Spawn AI from class if u leave the owner without anything, the node take a self reference and like “BP_AIMoveTest” spawns “BP_AIMoveTest”, you have a loop

PD: Try to always spawn in GameMode

1 Like