Hi @Justin
After player kills the AI enemy, ragdoll spawns.. But spawned ragdoll is misbehaving..
Check out this video:
First I thought that behavior tree may executing even after character die.. bu tlater I found that on death event, you already disabled behavior tree.
You can also see an error after enemy character die.
Looking forward to the fix.
Thank you!
After player kills the AI enemy, ragdoll spawns.. But spawned ragdoll is misbehaving..
Check out this video:
First I thought that behavior tree may executing even after character die.. bu tlater I found that on death event, you already disabled behavior tree.
private void OnDeath(Vector3 position, Vector3 force, GameObject attacker)
{
m_BehaviorTreeEnabled = BehaviorManager.instance.IsBehaviorEnabled(m_BehaviorTree);
if (m_BehaviorTreeEnabled) {
m_BehaviorTree.DisableBehavior();
}
}
You can also see an error after enemy character die.
Looking forward to the fix.
Thank you!