Verse API reference page for the switch_device class
Used to allow agents to turn other linked devices on/off or other custom state changes.
Verse using statement |
using { /Fortnite.com/Devices } |
Inheritance Hierarchy
This class is derived from the following hierarchy, starting with creative_object:
| Name | Description |
|---|---|
creative_object |
Base class for creative devices and props. |
creative_device_base |
Base class for creative_device. |
Members
This class has both data members and functions.
Data
| Data Member Name | Type | Description |
|---|---|---|
ClearEvent |
listenable(payload) |
Signaled when the persistent data is cleared by the specified agent. Sends the agent that cleared persistent data on the device. |
IfOffWhenCheckedEvent |
listenable(payload) |
Signaled if the switch is off when the state is checked. |
IfOnWhenCheckedEvent |
listenable(payload) |
Signaled if the switch is on when the state is checked. |
StateChangesEvent |
listenable(payload) |
Signaled when the switch state changes. |
StateLoadEvent |
listenable(payload) |
Signaled when the switch state is loaded by the specified agent. Sends the agent that loaded the state on the device. |
StateSaveEvent |
listenable(payload) |
Signaled when the switch state is saved. |
TurnedOffEvent |
listenable(payload) |
Signaled when the switch is turned off by the specified agent. Sends the agent that turned off the device. |
TurnedOnEvent |
listenable(payload) |
Signaled when the switch is turned on by the specified agent. Sends the agent that turned on the device. |
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.