Verse API reference page for the trigger_base_device class
Base class for various specialized trigger devices. See also: trigger_device perception_trigger_device * attribute_evaluator_device
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 functions, but no data members.
Functions
| Function Name | Description |
|---|---|
Disable |
Disables this device. |
Enable |
Enables this device. |
GetMaxTriggerCount |
Gets the maximum amount of times this device can trigger. * 0 indicates no limit on trigger count. |
GetResetDelay |
Gets the time (in seconds) before the device can be triggered again (if MaxTrigger count allows). |
GetTransform |
Returns the transform of the creative_object with units in cm. You must check creative_object.IsValid before calling this if there is a possibility the object has been disposed or destroyed by gameplay. Otherwise a runtime error will result. |
GetTransmitDelay |
Gets the time (in seconds) which must pass after triggering, before this device informs other external devices that it has been triggered. |
GetTriggerCountRemaining |
Returns the number of times that this device can still be triggered before hitting GetMaxTriggerCount. Returns 0 if GetMaxTriggerCount is unlimited. |
MoveTo |
Moves the creative_object to the specified Position and Rotation over the specified time, in seconds. If an animation is currently playing on the creative_object it will be stopped and put into the AnimationNotSet state. |
MoveTo |
Moves the creative_object to the specified Transform over the specified time, in seconds. If an animation is currently playing on the creative_object it will be stopped and put into the AnimationNotSet state. |
Reset |
Resets the number of times this device has been activated. This will set GetTriggerCountRemaining back to 0 |
SetMaxTriggerCount |
Sets the maximum amount of times this device can trigger. * 0 can be used to indicate no limit on trigger count. * MaxCount is clamped between [0,20]. |
SetResetDelay |
Sets the time (in seconds) after triggering, before the device can be triggered again (if MaxTrigger count allows). |
SetTransmitDelay |
Sets the time (in seconds) which must pass after triggering, before this device informs other external devices that it has been triggered. |
TeleportTo |
Teleports the creative_object to the specified Position and Rotation. |
TeleportTo |
Teleports the creative_object to the specified location defined by Transform, also applies rotation and scale accordingly. |