Page 1 of 1

Alert Trigger

Posted: Sat Apr 30, 2016 7:02 am
by Momo
Hi , can u help me , im using alert trigger , the alert message didnt appear when player collide with the box ,

Re: Alert Trigger

Posted: Sat Apr 30, 2016 9:29 am
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.

Re: Alert Trigger

Posted: Sat Apr 30, 2016 10:48 am
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 1355 times

Re: Alert Trigger

Posted: Sat Apr 30, 2016 11:07 am
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.

Re: Alert Trigger

Posted: Sat Apr 30, 2016 11:11 am
by supadupa64
Hey, that was to help the person. I'm not the person asking for quest trigger info. :)

Re: Alert Trigger

Posted: Sat Apr 30, 2016 2:03 pm
by Tony Li
Oops, my bad. Thanks for posting the screenshot. It's always helpful to see how other people are setting things up.

Re: Alert Trigger

Posted: Mon May 02, 2016 4:22 pm
by Momo
Thanks , Its Work :)

Re: Alert Trigger

Posted: Mon May 02, 2016 4:33 pm
by Tony Li
Great! Thanks for letting me know.