Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

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.

Parameter Type
authority Authority
spawnAudienceOptions SpawnAudienceOptions

AudienceEntity

const red = spawnAudience(step, { members: redPlayers });
setAudience(step, red, red); // the team entity's own traits reach the team