Trigger Icicles to drop

Hi ,
I have a 2.5D platformer and im trying to make icicles drop when the player runs in front of them.

How would I go about doing this? I know you have to use :
// Destroy everything that enters the trigger
function OnTriggerEnter (other : Collider) {

I’m not good at scripting by the way :3

Well there are probably multiple options but I suggest this :

All your icecycles will need 2 corresponding colliders.

  • One to detect what the icecyle hits (So when it drops, it can damage the player)
  • And one collider that will be on the spot, the player passes. ( So when the player enters this collider, the icecycle has to drop)

I suggest working with empty gameObjects that only have a collider, which you add as a child to the icycle object.
(2 Colliders on 1 gameobject - Questions & Answers - Unity Discussions)