wiki.sine.space | sinespace

Difference between revisions of "Scripting/Server/SScene"

From wiki.sine.space
Jump to: navigation, search
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/server-scripting/scene/sscene")
 
Line 1: Line 1:
 
+
This page has moved to: https://docs.sine.space/v/scripting/server-scripting/scene/sscene
=Public Member Functions=
+
 
+
{{ScriptFunction|Table|GeneratePathTo|(int id, float value);|Returns a Table with a path generated between two given Vectors.|5=<pre>Space.Scene.GeneratePathTo(FirstVector, SecondVector)</pre>|6=<pre></pre>}}
+
 
+
=Properties=
+
 
+
{{ScriptFunction|int|ConnectedAvatars|{ get;}|Returns the number of Avatars connected to the region.|5=<pre>numOfAvatars = Space.Scene.ConnectedAvatars</pre>|6=<pre>function OnAvatarJoin(id)
+
  local numOfAvatars = Space.Scene.ConnectedAvatars
+
  Space.Log("Avatar with ID " .. id .. "has joined")
+
  Space.Log("Number of avatars connected: " .. numOfAvatars)
+
end</pre>}}
+
 
+
 
+
{{ScriptFunction|Table|Avatars|{ get;}|Returns a table of SAvatar objects currently in the region|5=<pre>currentAvatars = Space.Scene.Avatars</pre>|6=<pre></pre>}}
+
 
+
{{ScriptFunction|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.)|5=<pre>cellsTable = Space.Scene.Cells</pre>|6=<pre></pre>}}
+
 
+
{{ScriptFunction|SParcelManager|Parcels|{ get;}|Access to the SParcelManager class.|5=<pre>Space.Scene.Parcels</pre>|6=<pre></pre>}}
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 08:14, 19 September 2022

This page has moved to: https://docs.sine.space/v/scripting/server-scripting/scene/sscene