wiki.sine.space | sinespace

Scripting/SAvatarAppearence

From wiki.sine.space
Revision as of 06:15, 23 December 2020 by Edisonwu (Talk | contribs) (Created page with "Elements of avatar appearance. =Members= {{ScriptFunction|void|LoadOutfit|(int outfitID);|Load outfit.|5=local npc=Space.Host.ExecutingObject.AvatarAppearance<br> ''--add Np...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Elements of avatar appearance.

Members

LoadOutfit

void LoadOutfit (int outfitID);

Load outfit.

local npc=Space.Host.ExecutingObject.AvatarAppearance

--add Npc Statue component to GameObject.

npc.LoadOutfit(160)


ResetOutfit

void ResetOutfit ();

Reset outfit.

local npc=Space.Host.ExecutingObject.AvatarAppearance

--add Npc Statue component to GameObject.

npc.ResetOutfit()



ResetOutfitToTemplate

void ResetOutfitToTemplate (int outfitID);

Reset outfit to template.

local npc=Space.Host.ExecutingObject.AvatarAppearance

--add Npc Statue component to GameObject.

npc.ResetOutfitToTemplate(10001)



GetSlider

float GetSlider (SAppearanceSlider slider);

Return the value of Appearance Sliders.

local npc=Space.Host.ExecutingObject.AvatarAppearance

--add Npc Statue component to GameObject.

Space.Log(npc.GetSlider(AppearanceSlider.FaceLength))


GetHeight

float GetHeight ();

Return height of the avatar.

local npc=Space.Host.ExecutingObject.AvatarAppearance

--add Npc Statue component to GameObject.

Space.Log(npc.GetHeight())


GetSkinTone

SColor GetSkinTone ();

Return skin tone.

local npc=Space.Host.ExecutingObject.AvatarAppearance

--add Npc Statue component to GameObject.

Space.Log(npc.GetSkinTone().ToString())


GetEyeTone

SColor GetEyeTone ();

Return eye tone.

local npc=Space.Host.ExecutingObject.AvatarAppearance

--add Npc Statue component to GameObject.

Space.Log(npc.GetEyeTone().ToString())


Properties

Skeleton

SGameObject Skeleton (get);

Return the GameObject of avatar skeleton.

local npc=Space.Host.ExecutingObject.AvatarAppearance

--add Npc Statue component to GameObject.

Space.Log(npc.Skeleton.Name)


OutfitID

long OutfitID (get);

Return the current outfit id..

local npc=Space.Host.ExecutingObject.AvatarAppearance

--add Npc Statue component to GameObject.

Space.Log(npc.OutfitID)


Loaded

bool Loaded (get);

Return true if the avatar is full loaded.

local npc=Space.Host.ExecutingObject.AvatarAppearance

--add Npc Statue component to GameObject.

Space.Log(npc.Loaded)