spawnAudience
spawnAudience(
authority,spawnAudienceOptions?):AudienceEntity
Makes an audience entity of members, the players it holds: a team,
a role the impostors share, a pair of partners. It is visible to its
members alone, so a page outside it never learns it formed; a game
that wants a team every page sees sets its visibility to
Audience.Everyone. Its members are kept on the room. As Unreal Iris’s
object groups, whose members the server sets.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
authority |
Authority |
spawnAudienceOptions |
SpawnAudienceOptions |
Returns
Section titled “Returns”Example
Section titled “Example”const red = spawnAudience(step, { members: redPlayers }); setAudience(step, red, red); // the team entity's own traits reach the team