Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: 4ppleseed on May 28, 2013, 05:35:42 PM

Title: The correct way to destroy projectile prefabs?
Post by: 4ppleseed on May 28, 2013, 05:35:42 PM
Hi, I'm making a shooting game of sorts. When a projectile prefab hits something I want it to do somethings and then destroy it's self - but this is kicking up all sorts of 'you can't destroy a prefab' style errors. What is the correct way to go about this in Playmaker/Unity?

Is there a 'last collided' type action or how do a kill one projectile without killing the whole prefab?

Thanks  8)
Title: Re: The correct way to destroy projectile prefabs?
Post by: Lane on May 28, 2013, 05:49:26 PM
 Never seen that error before, how are you instanciating them?

A Pooling system works best for recycling projectiles.