ProtoFlux:Destroy Slot: Difference between revisions

From Resonite Wiki
create destroyslot
 
added more info
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Name": "*", "Type": "Impulse"},
{"Name": "*", "Type": "Call"},
{"Name": "Instance", "Type": "Slot"},
{"Name": "Instance", "Type": "Slot"},
{"Name": "PreserveAssets", "Type": "bool"},
{"Name": "PreserveAssets", "Type": "bool"},
Line 15: Line 15:
|}}
|}}


Destroys the [[Slot | slot]].
Destroys the Provided Instance ([[Slot|Slot]]) when * ([[Impulses|Call]]) is called.
 
== Inputs ==
 
=== * ([[Impulses|Call]]) ===
 
Call to destroy Instance ([[Slot|Slot]])
 
=== Instance ([[Slot|Slot]]) ===
 
The slot to destroy
 
=== PreserveAssets ([[Type:Bool|bool]]) ===
 
Whether or not the assets associated with the provided Instance ([[Slot|Slot]]) should stay or be instantly discarded
 
=== SendDestroyingEvent ([[Type:Bool|bool]]) ===
 
Whether or not to send a destroying event to other nodes like [[ProtoFlux:On Destroying|On Destroying]]
 
== Outputs ==
 
=== Next ([[Impulses|Continuation]]) ===
 
Sends an Impulse after * ([[Impulses|Call]]) is called and Instance ([[Slot|Slot]]) has been destroyed. will not fire if Instance ([[Slot|Slot]]) is null.
 
 
== Examples ==
 
<gallery widths=480px heights=480px>
File:ProtoFlux_example_destroy_slot_1.webp|A button that is hooked up to destroy a box and would display "Destroyed!". currently displays "Not pressed.".
File:ProtoFlux_example_destroy_slot_2.webp|The result of the code, where the box destroyed and the button displays "Destroyed!".
</gallery>


[[Category:ProtoFlux:Slots]]
[[Category:ProtoFlux:Slots]]

Latest revision as of 01:38, 10 February 2024

Destroy Slot
*
Next
Instance
PreserveAssets
SendDestroyingEvent
Slots

Destroys the Provided Instance (Slot) when * (Call) is called.

Inputs

* (Call)

Call to destroy Instance (Slot)

Instance (Slot)

The slot to destroy

PreserveAssets (bool)

Whether or not the assets associated with the provided Instance (Slot) should stay or be instantly discarded

SendDestroyingEvent (bool)

Whether or not to send a destroying event to other nodes like On Destroying

Outputs

Next (Continuation)

Sends an Impulse after * (Call) is called and Instance (Slot) has been destroyed. will not fire if Instance (Slot) is null.


Examples