Reply To: BT & trigger

NodeCanvas Forums Support BT & trigger Reply To: BT & trigger

#14668
eugene84
Participant

Thank you for your reply.

I looked at the examples before I posted as I downloaded the examples once I bought Node Canvas.

In one of the examples, (soldier chase)  the player  (sphere )  has a moveable script – point  & click  ( it’s not a BT as there is no blackboard attached). The soldiers chase depending on where I move the sphere.

So, I started out fresh, after reading your comments.

I only want to try ‘on  trigger enter’ to start a new action.   I have set up a player  (capsule) and placed a BT bound with point and click movement. The player is tagged ‘Player’ in the inspector.  The plane has a nav mesh and the player has a nav mesh agent and the point and click behavior works no problem when I hit play.

I then created a sphere with a sphere collider and ticked  ‘is trigger’ in Unity’s inspector. I attached a BT (bound) to the sphere and created a condition  – “If triggerEnter ‘Player’ Tag”  followed by an action  “debug log  ‘received’ “.  When I play and enter the sphere’s collider nothing happens  – no debug log text  ‘received’ and the condition remains red in the Sphere Behaviour tree.

I would like to have a point and click, where the player triggers events, open doors, start conversations.  Thanks.