Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Basic collider problem with a death script.

Discussion in 'Animation' started by nicole.dewinter, Nov 6, 2013.

  1. nicole.dewinter


    Nov 6, 2013
    I've created a small scene- a maze. I have three arrows that are animated to shoot in a straight line. They are triggered by a box collider on a pressure plate. If the arrows collide with a plane that is in front of the camera, then a death animation and level load script plays.

    My problem is that the script doesn't play- or- the person doesn't die unless the arrows hit the player while the player is moving. Currently it is the plane on the FPC that is the trigger for the arrow. I've tried changing it so that the arrow is the trigger but the death animation stops altogether.

    Is there something anyone knows that could fix this? The scripts are default ones that were given to me by the course instructor (media course).

    Here's the scripts I have used;
    Load level:

    Any help or ideas are very much appreciated.