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

setOwner

setOwner(authority, entity, owner): boolean

Makes owner the entity entity belongs to, or none with null, as Unreal’s SetOwner. An owner that is gone, another world’s, or one that entity already owns up its chain, entity itself among them, is refused: a development world throws, naming the two, and a deployed one logs it and changes nothing. Returns whether it applied.

Parameter Type
authority EntityAuthority
entity Entity
owner Entity | null

boolean