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 |
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 |
StateSaveEvent |
listenable(payload) |
Signaled when the switch state is saved. |
TurnedOffEvent |
listenable(payload) |
Signaled when the switch is turned off by the specified |
TurnedOnEvent |
listenable(payload) |
Signaled when the switch is turned on by the specified |
Functions
Function Name | Description |
---|---|
CheckState |
Checks the device state with |
ClearAllPersistenceData |
Clears persistence data for all |
ClearPersistenceData |
Clears persistence data for |
Disable |
Disables this device. |
Enable |
Enables this device. |
GetCurrentResetTime |
Returns the time, in seconds, before the switch will reset itself to default. Returns -1.0 if Store State Per Player is Yes or if there is no active reset timer. |
GetCurrentResetTime |
Returns the time, in seconds, before the switch will reset itself to default for Agent. Returns -1.0 if there is no active reset timer. |
GetCurrentState |
Returns the current state of this switch: true (on) or false (off). Use this overload of |
GetCurrentState |
Returns the current state of this switch: true (on) or false (off). Use this overload of |
GetInteractionTime |
Returns the Interaction Time required to activate this device (in seconds). |
GetStateResetTime |
Returns the value of State Reset Time, in seconds, for the device. Returns -1.0 if State Reset Time is not used. |
GetStateResetTime |
Returns the value of State Reset Time, in seconds, for the device, for a specific player. Returns -1.0 if State Reset Time is not used. |
GetTransform |
Returns the transform of the |
IsStatePerAgent |
Query whether this device has a single global on/off state, or has a personalized on/off state for each individual agent. |
LoadState |
Loads the device state with |
LoadStateForAll |
Loads the device state for all players. |
MoveTo |
Moves the |
MoveTo |
Moves the |
SaveState |
Saves the device state with |
SaveStateForAll |
Saves the device state for all players |
SetInteractionTime |
Sets the Interaction Time required to activate this device (in seconds). |
SetState |
Sets the state of the switch to a specific value for a specific |
SetState |
Sets the state of the switch to a specific value. Use when the device has Store State Per Player set to No. |
SetStateResetTime |
Updates the State Reset Time for the device, in seconds, clamped to the Min and Max defined in the device. This will not apply to any state reset timers currently in effect. Set to 0.0 to disable the State Reset Time. Set to less than 0.0 to reset to default. |
SetStateResetTime |
Updates the State Reset Time for the device, in seconds,for a specific player (if Store State Per Player is Yes), clamped to the Min and Max defined in the device. This will not apply to any state reset timers currently in effect. Set to 0.0 to disable the State Reset Time. Set to less than 0.0 to reset to default. |
SetTurnOffInteractionText |
Sets the Turn Off Text to be displayed to a user when the switch is currently on, and offers an interaction to switch it off. Clamped to 150 characters. |
SetTurnOnInteractionText |
Sets the Turn On Text to be displayed to a user when the switch is currently off, and offers an interaction to switch it on. Clamped to 150 characters. |
TeleportTo |
Teleports the |
TeleportTo |
Teleports the |
ToggleState |
Toggles between |
TurnOff |
Turns off the device with |
TurnOn |
Turns on this device with |