- Home /
Question by
allenvang007 · Mar 25, 2012 at 02:39 PM ·
collidertrigger
solution with on trigger destroy
i've been using on trigger enter destroy script but i don't want the script killing off the player but i want it to destroy the other gameobject that it trigger.. do anyone has any suggestion on how i can make it work.. Heres my Script-
function OnTriggerEnter (other : Collider) { Destroy(other.Gameobject);
} i want it to destroy the other game object instead of the player..
Comment
Yes, how about spelling 'other.gameObject' properly? Honestly, how hard can this be?