Verse API reference page for the nitro_barrel_spawner_device class
Used to create an environmental prop that applies Nitro to those around it when it is destroyed.
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 |
|---|---|---|
ExplodedEvent |
listenable(payload) |
Triggers when the barrel explodes after being launched. Sends the launching agent.If the launcher is a non-agent, sends false. |
LaunchedEvent |
listenable(payload) |
Triggers when an agent launches the barrel. Sends the launching agent.If the launcher is a non-agent, sends false. |
Functions
| Function Name | Description |
|---|---|
AllowRespawn |
Allows the barrel to respawn after it explodes, waiting RespawnDelay seconds. |
Disable |
Disables and hides the barrel.Disabling the device will remove an existing barrel and reset the respawn delay. |
DisallowRespawn |
Prevents the barrel from respawning.The RespawnDelay countdown will not start. If the countdown has already started, the barrel will not respawn when it ends. |
Enable |
Enables and shows the barrel.Enabling the device when it's disabled will spawn a new barrel. |
GetLaunchForceMultiplier |
Returns the force multiplier to launch the barrel. |
GetRespawnDelay |
Returns the delay between exploding and respawning (if allowed), in seconds. |
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. |
IsEnabled |
Succeeds if the barrel is enabled and visible. |
IsRespawnAllowed |
Succeeds if the barrel has respawn allowed. |
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. |
SetLaunchForceMultiplier |
Sets the multiplier applied to the force used when launching.This is clamped between 0.25 and 2.0. |
SetRespawnDelay |
Sets the delay time to respawn the barrel, clamped between 0.0 and 1000.0 seconds.This will override the delay timer if set during the delay countdown. |
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. |