Sinespace Client  2023.2.17543
Client-side scripting for Sinespace
SineSpace.Scripting.Types.SAvatarAppearance Class Reference
Inheritance diagram for SineSpace.Scripting.Types.SAvatarAppearance:
ScriptClassComponent< AvatarLoaderBaseInternal >

Public Member Functions

void LoadOutfit (int outfitID)
 Only works for players on a white-label deployment due to abuse concerns. This works for NPCs on any grid. More...
 
void ResetOutfit ()
 Only works for players on a white-label deployment due to abuse concerns. This works for NPCs on any grid. More...
 
void ResetOutfitToTemplate (int outfitID)
 Only works on a white-label grids.Reset current outfit to template one. More...
 
float GetSlider (SAppearanceSlider slider)
 Return the value of Appearance Sliders. More...
 
float GetHeight ()
 Return height of avatar. More...
 
SColor GetSkinTone ()
 Return skin tone of avatar. More...
 
SColor GetEyeTone ()
 Return eye tone of avatar. More...
 

Properties

long OutfitID [get]
 Return the current outfit id. More...
 
SGameObject Skeleton [get]
 Return the GameObject of avatar skeleton. More...
 
bool Loaded [get]
 Returns true if the avatar is full loaded. More...
 
- Properties inherited from ScriptClassComponent< AvatarLoaderBaseInternal >
SGameObject GameObject [get]
 Return the GameObject which component added. More...
 

Member Function Documentation

◆ GetEyeTone()

SColor SineSpace.Scripting.Types.SAvatarAppearance.GetEyeTone ( )

Return eye tone of avatar.

&ndash;Add Npc Statue component to GameObject
local npc=Space.Host.ExecutingObject.AvatarAppearance
Space.Log(npc.GetEyeTone().ToString())

◆ GetHeight()

float SineSpace.Scripting.Types.SAvatarAppearance.GetHeight ( )

Return height of avatar.

&ndash;Add Npc Statue component to GameObject
local npc=Space.Host.ExecutingObject.AvatarAppearance
Space.Log(npc.GetHeight())

◆ GetSkinTone()

SColor SineSpace.Scripting.Types.SAvatarAppearance.GetSkinTone ( )

Return skin tone of avatar.

&ndash;Add Npc Statue component to GameObject
local npc=Space.Host.ExecutingObject.AvatarAppearance
Space.Log(npc.GetSkinTone().ToString())

◆ GetSlider()

float SineSpace.Scripting.Types.SAvatarAppearance.GetSlider ( SAppearanceSlider  slider)

Return the value of Appearance Sliders.

Parameters
sliderThe type of AppearanceSlider.
&ndash;Add Npc Statue component to GameObject
local npc=Space.Host.ExecutingObject.AvatarAppearance
Space.Log(npc.GetSlider(AppearanceSlider.FaceLength))

◆ LoadOutfit()

void SineSpace.Scripting.Types.SAvatarAppearance.LoadOutfit ( int  outfitID)

Only works for players on a white-label deployment due to abuse concerns. This works for NPCs on any grid.

Parameters
outfitIDA valid outfit ID
&ndash;Add Npc Statue component to GameObject
local npc=Space.Host.ExecutingObject.AvatarAppearance
npc.LoadOutfit(160)

◆ ResetOutfit()

void SineSpace.Scripting.Types.SAvatarAppearance.ResetOutfit ( )

Only works for players on a white-label deployment due to abuse concerns. This works for NPCs on any grid.

&ndash;Add Npc Statue component to GameObject
local npc=Space.Host.ExecutingObject.AvatarAppearance
npc.ResetOutfit()

◆ ResetOutfitToTemplate()

void SineSpace.Scripting.Types.SAvatarAppearance.ResetOutfitToTemplate ( int  outfitID)

Only works on a white-label grids.Reset current outfit to template one.

Parameters
outfitIDA valid outfit ID
&ndash;Add Npc Statue component to GameObject
local npc=Space.Host.ExecutingObject.AvatarAppearance
npc.ResetOutfitToTemplate(10001)

Property Documentation

◆ Loaded

bool SineSpace.Scripting.Types.SAvatarAppearance.Loaded
get

Returns true if the avatar is full loaded.

&ndash;Add Npc Statue component to GameObject
local npc=Space.Host.ExecutingObject.AvatarAppearance
Space.Log(npc.Loaded)

◆ OutfitID

long SineSpace.Scripting.Types.SAvatarAppearance.OutfitID
get

Return the current outfit id.

&ndash;Add Npc Statue component to GameObject
local npc=Space.Host.ExecutingObject.AvatarAppearance
Space.Log(npc.OutfitID)

◆ Skeleton

SGameObject SineSpace.Scripting.Types.SAvatarAppearance.Skeleton
get

Return the GameObject of avatar skeleton.

&ndash;Add Npc Statue component to GameObject
local npc=Space.Host.ExecutingObject.AvatarAppearance
Space.Log(npc.Skeleton.Name)
ScriptClassComponent< AvatarLoaderBaseInternal >::GameObject
SGameObject GameObject
Return the GameObject which component added.
Definition: ScriptClass.cs:25