ProtoFlux:OnDestroy: Difference between revisions

From Resonite Wiki
Create On Destroy ProtoFlux Node Page
 
m YoshBot moved page ProtoFlux:On Destroy to ProtoFlux:OnDestroy: Automated: removing spaces from ProtoFlux namespace
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
|}}
|}}


On Destroy is a ProtoFlux node that sends an impulse out of Trigger whenever the node is destroyed.
The '''On Destroy''' node sends an impulse out of Trigger whenever the node is destroyed.
This can sometimes not fire code the way you want, since the code after the node may have already been destroyed. It is better practice to use [[ProtoFlux:On Destroying|On Destroying]].
This can sometimes not fire code the way you want, since the code after the node may have already been destroyed. It is better practice to use [[ProtoFlux:On Destroying|On Destroying]].



Latest revision as of 00:28, 21 August 2025

On Destroy
OnlyHost
Trigger
Events

The On Destroy node sends an impulse out of Trigger whenever the node is destroyed. This can sometimes not fire code the way you want, since the code after the node may have already been destroyed. It is better practice to use On Destroying.

Inputs

OnlyHost (bool)

Checks the event on the host rather than on everyone.

Outputs

Trigger (Call)

Sends an Impulse when the node is destroyed.

Examples