ReferenceVerse
Get Players
get players
Updated
get-players in ~90 seconds.Three pirates climb the crow's nest, and instantly, a fresh spyglass drops into every single one of their hands.
To make that happen, GetPlayers scoops up everyone in the match and feeds them into a loop, one by one.
We call GetPlayspace to grab the active Crew array, then iterate through each Pirate to trigger the granter.
Reach for this whenever you need to apply a game rule, grant loot, or check stats for every human in your island at once.
crow_nest_device := class(creative_device):
@editable
Spyglass : item_granter_device = item_granter_device{}
OnBegin<override>()<suspends>:void =
Crew := GetPlayspace().GetPlayers()
for (Pirate : Crew):
Spyglass.GrantItem(Pirate)
Build your own lesson with get-players
Generate a personalized, compile-checked lesson grounded in this exact reference.
Build a lesson →