?since the prefabs have changed..
is there a call to active the ui?
This is my code:
simple animal name is passed in animal variable..
Code:string[] possibleAnimalPrefabs = { "assets/rust.ai/agents/bear/bear.prefab", "assets/rust.ai/agents/boar/boar.prefab", "assets/rust.ai/agents/chicken/chicken.prefab", "assets/rust.ai/agents/horse/horse.prefab", "assets/rust.ai/agents/stag/stag.prefab", "assets/rust.ai/agents/wolf/wolf.prefab", "assets/rust.ai/agents/zombie/zombie.prefab" }; try { var prefabName = possibleAnimalPrefabs.Where(x => x.Contains(animal)).First(); BaseEntity entity = GameManager.server.CreateEntity(prefabName, GetGroundPosition(position)); if (entity == null) return null; // have entity face target.. entity.transform.LookAt(target.transform); entity.name = prefabName; entity.enabled = true; entity.Spawn(); entity.SendNetworkUpdate(BasePlayer.NetworkQueue.Update);
Spawned Animal not moving (inactive ai)
Discussion in 'Rust Development' started by carny666, Apr 22, 2017.
-
Wulf Community Admin
There's a dependency issue we're working on fixing, so if you updated today and noticed and issue with AI movement that is likely why.
-
-
Wulf Community Admin
-
[DOUBLEPOST=1493095598][/DOUBLEPOST]also, you can walk through the animals. as if they are noclip... -
Wulf Community Admin
-
-
Wulf Community Admin
-
Oxide Lua Core
Enables LUA plugin files for Oxide
I had Installed it when setting up my new server a couple of days ago. I noticed in the logs it had an error, so I uninstalled it, and the animals started working.
Perhaps streamline are linking to an old version or something, I don't know, but it worked -
Wulf Community Admin
-
Sounds fair
Something for ppl to look at if they are on streamline and having this issue -
i just saw this and gonna try to uninstall it too to see any changes
-
Anyone have any insight into this? I wiped my server in hopes of getting the animals working. They worked for about 2 days. Now they are totally frozen in place. Thanks in advance.
-
Mine are frozen!
Dunno how to fix them... -
Same here...no movement or sensing.
-
-
Wulf Community Admin