All pages
Powered by GitBook
1 of 1

Loading...

SScene

Index

Properties Index

Property

Properties

ConnectedAvatars

int ConnectedAvatars get

Returns the number of Avatars connected to the region.

Avatars

Table Avatars get

Returns a table of SAvatar objects currently in the region

Cells

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.)

Parcels

Parcels get

Access to the SParcelManager class.

int ConnectedAvatars get

Table Avatars get

Table Cells get

SParcelManager Parcels get

SParcelManager
numOfAvatars = Space.Scene.ConnectedAvatars
function OnAvatarJoin(id)
  local numOfAvatars = Space.Scene.ConnectedAvatars
  Space.Log("Avatar with ID " .. id .. "has joined")
  Space.Log("Number of avatars connected: " .. numOfAvatars)
end
currentAvatars = Space.Scene.Avatars
cellsTable = Space.Scene.Cells
Space.Scene.Parcels