wiki.sine.space | sinespace

Difference between revisions of "Scripting/SAvatar"

From wiki.sine.space
Jump to: navigation, search
(Created page with "The SAvatar class refers a single player avatar active within the scene. This only contains active players with a valid network connection, and does not include NPCs. =Member...")
 
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/savatar")
 
(49 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The SAvatar class refers a single player avatar active within the scene. This only contains active players with a valid network connection, and does not include NPCs.
+
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/savatar
 
+
=Members=
+
{{ScriptFunction|string|Username|{ get; }|Returns the players current username (note: this can be changed by players for a small fee)}}
+
{{ScriptFunction|string|Title|{ get; }|Returns the players current title}}
+
{{ScriptFunction|long|ID|{ get; }|Returns the players user ID, please note if you store these, this is a 'long' value not a 'int'.}}
+
{{ScriptFunction|SGameObject|GameObject|{ get; }|Returns a reference to the players GameObject}}
+
 
+
{{ScriptFunction|void|Detach|();|Detaches the avatar from whatever it may be attached to (only works for the player avatar), including chairs, vehicles and so forth.}}
+
{{ScriptFunction|void|AttachTo|(SGameObject target);|Attaches the player to the target game object, keeping the avatar fixed in its current position/rotation relative to the target object (e.g. for use in Vehicles)}}
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 07:51, 19 September 2022

This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/savatar