So, I have a room full of these 'Larvae' enemy prefabs. I place an Add Combatant script on it so that the enemy is recognized as a combatant, and can be attacked, etc. This is a realtime battle, and there is a Real Time Battle Area set in the scene. Everything works as normal.
However, as soon as I kill one, the rest of them disappear! The Death event (a particle prefab that spawns on the dead enemy plays) on the mob that I kill, but the rest simply disappear.
This does NOT occur if I'm using the ORK combatant spawner to spawn them. (Which we are not using so we can set individual settings on our custom AI on each mob in scene (patrol paths, etc).
Hm, did a quick test with a similar setup and worked fine here, each combatant died alone ... Add Combatant components don't use scene IDs, so that shouldn't be the issue.
Are the combatants mounted to something? Or is there something done in the combatant's death event that could cause this?
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
They are indeed all children to a 'MonsterPlacement' parent gameobject, for sake of organization in the scene hierarchy. Moving all of the monsters to Root seems to have fixed the problem; they seem to be functioning fine now!
---------------------------------------
Personal Twitter: https://twitter.com/AMO_Crate
I make RFI! https://twitter.com/NootboxGames
Add Combatant components don't use scene IDs, so that shouldn't be the issue.
Are the combatants mounted to something? Or is there something done in the combatant's death event that could cause this?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
They are indeed all children to a 'MonsterPlacement' parent gameobject, for sake of organization in the scene hierarchy. Moving all of the monsters to Root seems to have fixed the problem; they seem to be functioning fine now!
Big thanks for the hint! :D
---------------------------------------
Personal Twitter: https://twitter.com/AMO_Crate
I make RFI! https://twitter.com/NootboxGames