Represents a poll. For example, in a poll “What to have for lunch?” the group represents the question and contains the possible answers. Owns the overall state of the poll and keeps track of available options. A group can have multiple options, connected via an internal ID.
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 |
|---|---|---|
BeginVoteEvent |
listenable(payload) |
Triggered when voting begins. |
EndVoteEvent |
listenable(payload) |
Triggered when voting has completed. |
VoteTiedEvent |
listenable(payload) |
Triggered when voting ends and at least two options are tied for first place. |
Functions
| Function Name | Description |
|---|---|
BeginVote |
Allows votes to be cast for this group’s options, and starts a timer if applicable. |
EndVote |
Prevents any more votes from being cast and picks a winner based on vote count. |
GetMaxVotesPerPlayer |
The total number of times each player can vote in this poll. If zero or less, players cannot vote. |
GetPollQuestion |
The display text for this poll. For example the string “What to have for lunch?” |
GetTimeLimit |
The amount of time this poll is available before ending, in seconds. If set to zero, the poll will not be ended by a time limit. |
GetTransform |
Returns the transform of the |
GetVotingOptions |
Get the list of options currently in this voting group. |
MoveTo |
Moves the |
MoveTo |
Moves the |
TeleportTo |
Teleports the |
TeleportTo |
Teleports the |