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

findAuthority

findAuthority(writer, entity): EntityAuthority

An authority over entity, or null where writer has none over it. The room’s step and an authority hold one over any entity of their world. Any other writer, a page’s step, a view’s or a setup’s, holds one only over an entity no room streams: one spawnLocal made, or one only a page holds. It writes that entity alone, and one taken from a view’s or a setup’s writer stops when that writer closes. As Unreal’s client is the authority over an actor it spawned that is not replicated.

Parameter Type
writer AuthoritativeStep | Authority
entity Entity

EntityAuthority

findAuthority(writer, entity): EntityAuthority | null

An authority over entity, or null where writer has none over it. The room’s step and an authority hold one over any entity of their world. Any other writer, a page’s step, a view’s or a setup’s, holds one only over an entity no room streams: one spawnLocal made, or one only a page holds. It writes that entity alone, and one taken from a view’s or a setup’s writer stops when that writer closes. As Unreal’s client is the authority over an actor it spawned that is not replicated.

Parameter Type
writer LocalWriter
entity Entity

EntityAuthority | null