Alert Trigger

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Momo
Posts: 5
Joined: Thu Apr 28, 2016 7:13 am

Alert Trigger

Post by Momo »

Hi , can u help me , im using alert trigger , the alert message didnt appear when player collide with the box ,
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Alert Trigger

Post by Tony Li »

Hi,

Here are some things to check:

1. Set the Alert Trigger's Trigger dropdown to OnCollisionEnter.

2. Make sure Unity is set up to register collisions:
  • The box must have a collider (with In Trigger unticked) and a rigidbody.
  • The player must have a collider and a rigidbody.
  • The player and collider must be on physics layers that are configured to register collisions.
  • Make sure your Alert Trigger's Condition settings will allow the player to use the trigger. For example, if you've set Condition > Accepted Tags, make sure the player's Tag is in the list.
If you get stuck after checking those things, please feel free to post screenshots or send a reproduction project to tony (at) pixelcrushers.com.
User avatar
supadupa64
Posts: 200
Joined: Sun Mar 06, 2016 9:40 pm
Contact:

Re: Alert Trigger

Post by supadupa64 »

Maybe this will help you. I use this for an audio trigger that also shows an alert message. This image shows the inspector view of the box collider that player passes through to show the alert.
questtrigger.jpg
questtrigger.jpg (106.53 KiB) Viewed 1350 times
Last edited by supadupa64 on Sat Apr 30, 2016 12:21 pm, edited 1 time in total.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Alert Trigger

Post by Tony Li »

Do you expect the alert to come from the Quest Trigger? Is the trigger correctly setting the quest state?

Try temporarily setting the Dialogue Manager's Debug Level to Info. This should report when the trigger fires and when it tries to show any alert.
User avatar
supadupa64
Posts: 200
Joined: Sun Mar 06, 2016 9:40 pm
Contact:

Re: Alert Trigger

Post by supadupa64 »

Hey, that was to help the person. I'm not the person asking for quest trigger info. :)
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Alert Trigger

Post by Tony Li »

Oops, my bad. Thanks for posting the screenshot. It's always helpful to see how other people are setting things up.
Momo
Posts: 5
Joined: Thu Apr 28, 2016 7:13 am

Re: Alert Trigger

Post by Momo »

Thanks , Its Work :)
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Alert Trigger

Post by Tony Li »

Great! Thanks for letting me know.
Post Reply