When I spawn a bandit I get this warning in the console log:
I use this code to spawn the bandit:Code:Effect.Init - invalid entity
Anyone else experienced this and found a fix?Code:var bandit = (Scientist)GameManager.server.CreateEntity("assets/prefabs/npc/bandit/guard/bandit_guard.prefab", new Vector3(position.x, position.y, position.z)); bandit.Spawn();
Maybe it comes from the radio effect that normal scientists have?
EDIT: I fixed it by setting the RadioEffect to null.
Solved Effect.Init - invalid entity
Discussion in 'Rust Development' started by Rekt Ross, Aug 7, 2018.