Breakroom is now Sinewave Campus. Book a meeting

SScene

الخادمالمشهد
في هذا الصنفConnectedAvatars
  1. الخصائص
  2. ConnectedAvatars
  3. Avatars
  4. Cells
  5. Parcels
الأعضاء 4
خاصيةConnectedAvatarsReturns the number of Avatars connected to the region.
خاصيةAvatarsReturns a table of SAvatar objects currently in the region
خاصية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.)
خاصيةParcelsAccess to the SParcelManager class.

الخصائص​

ConnectedAvatarsللقراءة فقط​

int ConnectedAvatars {get; }

Returns the number of Avatars connected to the region.

مثال

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

Avatarsللقراءة فقط​

Table Avatars {get; }

Returns a table of SAvatar objects currently in the region

مثال

Lua
currentAvatars = Space.Scene.Avatars

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

مثال

Lua
cellsTable = Space.Scene.Cells

Parcelsللقراءة فقط​

SParcelManager Parcels {get; }

Access to the SParcelManager class.

مثال

Lua
Space.Scene.Parcels