SAvatar
Functions
AttachTo
Parameter
Type
Description
Space.Scene.PlayerAvatar.AttachTo(targetObject)--the below script makes the player Attach/Detach to/from this object by clicking it
--(Example: Seat/Vehicle/Experience etc.. )
thisGameObject = Space.Host.ExecutingObject
isAttached = 0
OnClick = function()
if isAttached == 0 then
Space.Scene.PlayerAvatar.AttachTo(thisGameObject)
isAttached = 1
elseif isAttached == 1 then
Space.Scene.PlayerAvatar.Detach()
isAttached = 0
end
end
thisGameObject.AddClickable()
thisGameObject.Clickable.Tooltip = "Click to Attach/Detach yourself to/from me"
thisGameObject.Clickable.OnClick(OnClick) Detach
OnAvatarAttached
OnAvatarDetached
LoadOutfit
Parameter
Type
Description
ResetOutfit
Register
Parameter
Type
Description
ResetOutfitToTemplate
Parameter
Type
Description
FindBone
Parameter
Type
Description
Teleport
Parameter
Type
Description
SetIKGoal
Parameter
Type
Description
ClearIKGoal
Parameter
Type
Description
PlayCustomAnimation
Parameter
Type
Description
StopCustomAnimation
OnAvatarReload
Parameter
Type
Description
SynchroniseState
StartFly
EndFly
OnAvatarSkeletonReload
Parameter
Type
Description
TeleportToNextEvent
Parameter
Type
Description
Properties
Username
DisplayName
Title
OrgTitle
OrgName
ID
IsAttached
MovementSpeed
JumpHeight
Guest
OutfitID
Loaded
Gender
LockObject
Skeleton
BlockMovement
BlockRun
BlockFly
BlockCrouch
BlockJump
IsGrounded
GameObject
Last updated
Was this helpful?

