The Destroyer removes the target object from the world when executed. The Destroyer can also be used to destroy Nodes.
Target | The target object that will be destroyed |
Execute | Executes the Node |
Enabled | Enable or disable the node. Disabled Nodes cannot be executed |
On Object Destroyed | Outputs links to other Nodes or Objects when the target object is destroyed |
Destroying an object with a button press
Step 1: Add a Destroyer Node.
https://wiki.hypehype.com/nodes/action/destroyer/add_destroyer.mp4
Step 2: Set up the Destroyer:
https://wiki.hypehype.com/nodes/action/destroyer/target_destroyer.mp4
Step 3: Add a Button Node and set it to execute the destroyer
https://wiki.hypehype.com/nodes/action/destroyer/add_button_and_link.mp4
Step 4: Test that the button destroys the object
https://wiki.hypehype.com/nodes/action/destroyer/test_destroyer.mp4
Tip: The button in this example can be replaced by any Node that can output links to other Nodes.
Here's a link to the Game that shows how to implement and use the Destroyer node: