Search Unity

Destructible Prop Detecting Collision?

Discussion in 'FPS.Sample Game' started by Stexe, Apr 2, 2019.

  1. Stexe

    Stexe

    Joined:
    Feb 2, 2014
    Posts:
    217
    I'm trying to get the destructible props to explode (or set health to 0) when a certain collision is detected based on a tag. Can't figure out how to do it with the current script, since it is instead looking for player team flags and colliders that provide damage (bullets and stuff).

    Any idea how to set that up so it works regardless if something would damage it or not?