Destructible Saver question
Posted: Wed Apr 29, 2020 7:33 am
Hi Tony,
Would it be possible to access and change the 'destroyed' bool in a destructible saver directly instead of actually destroying it? Or would that cause problems? When a monster is killed in my game the animation plays, falls over etc but then there may be some interaction between other monsters or characters that couldn't be done if the gameObject is destroyed immediately (spotting the corpse and investigating the area for example). I don't want the monster to respawn next time the level is loaded, but if the player saves/changes scene the monster will come back to life since the destructible saver hasn't triggered.
Is there a decent way to affect the destructible saver like this? Or would a custom saver make more sense? I am destroying the monster immediately under different circumstances, so using the same saver for this system would be super useful.
Cheers,
Rob
Would it be possible to access and change the 'destroyed' bool in a destructible saver directly instead of actually destroying it? Or would that cause problems? When a monster is killed in my game the animation plays, falls over etc but then there may be some interaction between other monsters or characters that couldn't be done if the gameObject is destroyed immediately (spotting the corpse and investigating the area for example). I don't want the monster to respawn next time the level is loaded, but if the player saves/changes scene the monster will come back to life since the destructible saver hasn't triggered.
Is there a decent way to affect the destructible saver like this? Or would a custom saver make more sense? I am destroying the monster immediately under different circumstances, so using the same saver for this system would be super useful.
Cheers,
Rob