I’m trying to have it so when my FPS character touches this vase the vase will destroy.
here is my script:
function OnCollisionStart(c:Collision)
{
if (c.gameObject.name == “vase”)
{
Destroy(c.gameObject); // destroys the thing this script bumped into
}
}
Where do I put this script? on the vase or the character?
it doesn’t work on either one. Was hoping maybe someone could help me with a better script