Breakroom is now Sinewave Campus. Book a meeting

SScene

ServeurScène
Dans cette classeConnectedAvatars
  1. Propriétés
  2. ConnectedAvatars
  3. Avatars
  4. Cells
  5. Parcels
Membres 4
PropriétéConnectedAvatarsReturns the number of Avatars connected to the region.
PropriétéAvatarsReturns a table of SAvatar objects currently in the region
PropriétéCellsReturns a table of SCell objects. (Not all cells are available at all times, a client on this server must be within 384m of a cell in order for it to exist.)
PropriétéParcelsAccess to the SParcelManager class.

Propriétés​

ConnectedAvatarsLecture seule​

int ConnectedAvatars {get; }

Returns the number of Avatars connected to the region.

Exemple

Lua
numOfAvatars = Space.Scene.ConnectedAvatars
Lua
function OnAvatarJoin(id)
local numOfAvatars = Space.Scene.ConnectedAvatars
Space.Log("Avatar with ID " .. id .. "has joined")
Space.Log("Number of avatars connected: " .. numOfAvatars)
end

AvatarsLecture seule​

Table Avatars {get; }

Returns a table of SAvatar objects currently in the region

Exemple

Lua
currentAvatars = Space.Scene.Avatars

CellsLecture seule​

Table Cells {get; }

Returns a table of SCell objects. (Not all cells are available at all times, a client on this server must be within 384m of a cell in order for it to exist.)

Exemple

Lua
cellsTable = Space.Scene.Cells

ParcelsLecture seule​

SParcelManager Parcels {get; }

Access to the SParcelManager class.

Exemple

Lua
Space.Scene.Parcels