Used to track and react to how many players are in a particular area, and optionally display that information in game.
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 |
|---|---|---|
CountedEvent |
listenable(payload) |
Signaled when a valid player enters the zone and is counted. The frequency of evaluation against the Target Player Count can be controlled through the device settings.
Sends the |
CountFailsEvent |
listenable(payload) |
Signaled when the player count does not match Target Player Count. The frequency of evaluation against Target Player Count can be controlled through the device settings. |
CountSucceedsEvent |
listenable(payload) |
Signaled when the player count matches Target Player Count. The frequency of evaluation against Target Player Count can be controlled through the device settings. |
RemovedEvent |
listenable(payload) |
Signaled when a player is no longer counted by this device, such as when they leave the zone, leave the game, or are assigned to a different |
Functions
| Function Name | Description |
|---|---|
AddTag |
Adds a |
CompareToTarget |
Triggers an evaluation of the current count vs Target Player Count, signaling |
ContainsAllTags |
Fails if at least one type in |
ContainsAnyTag |
Succeeds if at least one of the types in |
ContainsTag |
Succeeds if at least one tag of type |
DecrementTargetCount |
Decrements Target Player Count by |
Disable |
Disables this device. |
Enable |
Enables this device. |
GetCount |
Returns the number of players currently counted by this device |
GetCountedAgents |
Returns an array of agents that are currently counted by the device. |
GetGlobalTransform |
Gets the global transform of this object. |
GetTargetCount |
Returns the number of players required for this counter to succeed. |
GetTransform |
Returns the transform of the |
HideInfoPanel |
Hide this device info panel from the world. |
IncrementTargetCount |
Increments Target Player Count by |
IsCounted |
Is true if |
IsPassingTest |
Is true if the device is currently succeeding in its comparison. |
IsShowingInfoPanel |
Returns whether this device is represented in the world as an info panel showing Current + Required player counts. |
MoveTo |
Moves the |
MoveTo |
Moves the |
MoveTo |
Moves the |
Register |
Adds the player to the registered player list. Track Registered Players determines how registered players are counted. |
RemoveAllTags |
Removes all tag instances of type |
RemoveAllTagsExcept |
Removes all tag instances that are not of type |
RemoveAllTagsExcept |
Removes all tag instances that are not of any of the types in |
RemoveTag |
Removes the tag instance associated with the |
Reset |
Resets Target Player Count to the default value defined in the device settings. If Target Player Count was previously incremented or decremented, this reset immediately triggers a new comparison. |
SetGlobalTransform |
Sets the global transform of this object. |
SetTargetCount |
Sets the number of players required for this counter to succeed. Immediately triggers a new comparison. |
ShowInfoPanel |
Show this device in the world as an info panel showing Current + Required player counts. |
TeleportTo |
Teleports the |
TeleportTo |
Teleports the |
TeleportTo |
Teleports the |
TransmitForAllCounted |
Triggers |
Unregister |
Removes the player from the registered player list. Track Registered Players determines how registered players are counted. |
UnregisterAll |
Clears all players from the list of registered players. Track Registered Players determines how registered players are counted. |