An interface for shared functionality between different spire devices
Verse using statement |
using { /Fortnite.com/Devices } |
Exposed Interfaces
This interface exposes the following interfaces:
| Name | Description |
|---|---|
enableable |
Implemented by classes whose instances can be enabled and disabled. |
Members
This interface has both data members and functions.
Data
| Data Member Name | Type | Description |
|---|---|---|
ActivationDistance |
?float |
Determines the distance where approaching players activate the Spire. |
ActivateEvent |
listenable(payload) |
Triggers when the Spire becomes activated from players entering the |
DeactivateEvent |
listenable(payload) |
Triggers when the Spire becomes deactivated, either from players leaving the |
DestroyEvent |
listenable(payload) |
Triggers when the Spire is destroyed from damage or events |
MaxHealth |
?float |
The maximum health of this Spire. |
Health |
?float |
The Spire's current health. Clamped between 0 and
|
ShowMapIcon |
?logic |
Determines if a Spire-specific icon should be displayed on the map while the Spire is spawned |
Functions
| Function Name | Description |
|---|---|
IsActivated |
If this Spire is currently activated.
|
Spawn |
Spawns the Spire, causing it to become visible and enabling collision
|
IsSpawned |
Succeeds if this Spire is in a spawned state. Fails if the Spire is destroyed or has not spawned. |
Destroy |
Sets the Spire’s health to zero, destroying it. |
IsDestroyed |
Succeeds if this Spire’s health has reached 0. Fails otherwise |
Reset |
Resets the Spire to its initial state. |