Vote.StartAndWait
Optional integration
This method requires Callvote.
Starts a vote and waits until it is completed.
Syntax
Vote.StartAndWait "question" @player_asking? *options...
Returns
text value
Arguments
| Name | Required | Type | Description |
|---|---|---|---|
question | Yes | Any text e.g. "Hello, World!" | |
player asking | No | Player value e.g. @player, with EXACTLY 1 player. | Use _ if there isn't a specific player asking the question. |
options | Yes | a reference to VoteOption object. | The options for the vote. |
Details
It also returns the option key that won. If it was a tie, "tie" will be returned.
On a running server
Use serhelp Vote.StartAndWait to inspect the reference generated by your installed SER version.