Hi.
I have an NPC which usually patrols an area, and sometimes when it's going from point A to point B there is a door in between. For the NPC to open the door I use the Interact ability. However, I'd like it to stop the NPC from patrolling while the ability is active (Is Ability Active task). But if the active branch where the Patrol task is, moves to the "Is Ability Active" task branch, then the NPC goes to another waypoint when the task returns success and the Patrol branch is active again.
Should I modify the Patrol task or is there a bult in way to do this?
I have an NPC which usually patrols an area, and sometimes when it's going from point A to point B there is a door in between. For the NPC to open the door I use the Interact ability. However, I'd like it to stop the NPC from patrolling while the ability is active (Is Ability Active task). But if the active branch where the Patrol task is, moves to the "Is Ability Active" task branch, then the NPC goes to another waypoint when the task returns success and the Patrol branch is active again.
Should I modify the Patrol task or is there a bult in way to do this?