0
Answered

Destroy object

Richard Rae 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 1

Hi,I have a platform as a parent of a trigger.When my player exits the trigger I can easily set the gravity etc in the parent by using “get parent” but cannot get the parent to destroy itself after a period of time.Can you show me how to do this.

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Answered

You can use the Destroy unit with a t (time) parameter, but make sure to use Get Game Object after the Get Parent unit so that the entire game object is targeted.

If these instructions are not clear, please post screenshots of what you've tried so far!