(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
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
Return height of the avatar.
local npc=Space.Host.ExecutingObject.AvatarAppearance
--add Npc Statue component to GameObject.
Space.Log(npc.GetHeight())
GetSkinTone
Return skin tone.
local npc=Space.Host.ExecutingObject.AvatarAppearance
--add Npc Statue component to GameObject.
Space.Log(npc.GetSkinTone().ToString())
GetEyeTone
Return eye tone.
local npc=Space.Host.ExecutingObject.AvatarAppearance
--add Npc Statue component to GameObject.
Space.Log(npc.GetEyeTone().ToString())
Properties
Skeleton
Return the GameObject of avatar skeleton.
local npc=Space.Host.ExecutingObject.AvatarAppearance
--add Npc Statue component to GameObject.
Space.Log(npc.Skeleton.Name)
OutfitID
Return the current outfit id..
local npc=Space.Host.ExecutingObject.AvatarAppearance
--add Npc Statue component to GameObject.
Space.Log(npc.OutfitID)
Loaded
Return true if the avatar is full loaded.
local npc=Space.Host.ExecutingObject.AvatarAppearance
--add Npc Statue component to GameObject.
Space.Log(npc.Loaded)
Scripting Portal
|
|
Common
|
|
|
Key Classes
|
|
|
Helper Classes
|
|
|
Scripting samples and tutorials
|
|
|