All pages
Powered by GitBook
1 of 1

Loading...

SAvatar

Index

Properties Index

Property

Properties

ID

int ID get

Avatar's ID

Position

Vector3 Position get

Avatar's position

Velocity

Vector3 Velocity get

Avatar's Velocity

Rotation

Quaternion Rotation get

Avatar's Rotation

Username

string Username get

Avatar's Username

Title

string Title get

Avatar's Title

int ID get

Vector3 Position get

Vector3 Velocity get

Quaternion Rotation get

string Username get

string Title get

ID = Space.Scene.Avatars[1].ID
--server script that prints a list of IDs of players online whenever someone joins
function OnAvatarJoin(id)
  local numOfAvatars = Space.Scene.ConnectedAvatars

  for num =1 , numOfAvatars, 1 do
    Space.Log(Space.Scene.Avatars[num].ID)
  end
end
ID = Space.Scene.Avatars[1].Position
--server script that prints a list of Positions of players online whenever someone joins
function OnAvatarJoin(id)
  local numOfAvatars = Space.Scene.ConnectedAvatars

  for num =1 , numOfAvatars, 1 do
    Space.Log(Space.Scene.Avatars[num].Position)
  end
end
ID = Space.Scene.Avatars[1].Velocity
--server script that prints a list of Velocitys of players online whenever someone joins
function OnAvatarJoin(id)
  local numOfAvatars = Space.Scene.ConnectedAvatars

  for num =1 , numOfAvatars, 1 do
    Space.Log(Space.Scene.Avatars[num].Velocity)
  end
end
ID = Space.Scene.Avatars[1].Quaternion 
--server script that prints a list of Rotations of players online whenever someone joins
function OnAvatarJoin(id)
  local numOfAvatars = Space.Scene.ConnectedAvatars

  for num =1 , numOfAvatars, 1 do
    Space.Log(Space.Scene.Avatars[num].Rotation)
  end
end
ID = Space.Scene.Avatars[1].Username
--server script that prints a list of Usernames of players online whenever someone joins
function OnAvatarJoin(id)
  local numOfAvatars = Space.Scene.ConnectedAvatars

  for num =1 , numOfAvatars, 1 do
    Space.Log(Space.Scene.Avatars[num].Username)
  end
end
ID = Space.Scene.Avatars[1].Title
--server script that prints a list of Titles of players online whenever someone joins
function OnAvatarJoin(id)
  local numOfAvatars = Space.Scene.ConnectedAvatars

  for num =1 , numOfAvatars, 1 do
    Space.Log(Space.Scene.Avatars[num].Title)
  end
end