Hi,
I'm using Behavior Designer 1.7.3 and Unity 2021.3.6f1 on Windows 10.
I have several NPCs with just the Seek Task from the Movement pack. They all seek the Player. After one of them "catches" the Player, or if the Player completes his mission, I want to reset the position & rotation, of all the NPCs to their spawn points, using their transforms. This has proved impossible to achieve, even after Disabling the BT, setting navMeshAgent.isStopped = true, navMeshAgent.updatePosition = false and navMeshAgent.updateRotation = false (among other things that I tried). Nothing works! e.g. I set the NPC transform.position = spawnPoint.position, but the NPC appears anywhere else, except its spawnPoint.position.
I'd really appreciate your help to solve this!
I'm using Behavior Designer 1.7.3 and Unity 2021.3.6f1 on Windows 10.
I have several NPCs with just the Seek Task from the Movement pack. They all seek the Player. After one of them "catches" the Player, or if the Player completes his mission, I want to reset the position & rotation, of all the NPCs to their spawn points, using their transforms. This has proved impossible to achieve, even after Disabling the BT, setting navMeshAgent.isStopped = true, navMeshAgent.updatePosition = false and navMeshAgent.updateRotation = false (among other things that I tried). Nothing works! e.g. I set the NPC transform.position = spawnPoint.position, but the NPC appears anywhere else, except its spawnPoint.position.
I'd really appreciate your help to solve this!
Last edited: