LogoLogo
Scripting DocsSupport
Scripting
Scripting
  • Sinespace Scripting Documentation
  • Client Scripting
    • Viewer
      • SDialogues
      • SInput
      • SShared
      • SUI
    • Network
      • SChat
      • SNetwork
      • SPhotos
      • SVideos
      • SWebService
    • Player
      • SEconomy
      • SGroup
      • SInventory
      • SProfile
      • SQuests
    • Region
      • SCameraManager
      • SGrid
      • SHost
      • SPersistence
      • SPhysics
      • SPostFX
      • SScene
      • SScript
      • SRenderSettings
    • Components
      • SAnimation
      • SAnimator
      • SAudioReactiveAnimation
      • SAudioReactiveBase
      • SAudioReactiveLight
      • SAudioReactiveMaterial
      • SAudioReactiveParticleSystem
      • SAudioReactiveTransform
      • SAudioSource
      • SBoxCollider
      • SBrowserSurface
      • SCamera
      • SCanvasGroup
      • SCapsuleCollider
      • SCharacterController
      • SClickable
      • SCloth
      • SCollider
      • SContentSizeFitter
      • SEmbeddedVideo
      • SEventCalendar
      • SFurniture
      • SGraphicRaycaster
      • SHingeJoint
      • SLight
      • SLineRenderer
      • SMeshRenderer
      • SModularVehicle
      • SNavMeshAgent
      • SNavMeshObstacle
      • SNetworking
      • SParticleSystem
      • SPlayableDirector
      • SPostProcessVolume
      • SRectTransform
      • SReflectionProbe
      • SRenderer
      • SRigidbody
      • SRoomFloor
      • SSceneBackgroundMusic
      • SScriptingData
      • SScriptingEvents
      • SScriptingResources
      • SScriptingRuntime
      • SSeat
      • SSkinnedMeshRenderer
      • SSphereCollider
      • SStateMachine
      • STerrain
      • STrailRenderer
      • SUIButton
      • SUICanvas
      • SUIDropdown
      • SUIImage
      • SUIInputField
      • SUILayout
      • SUIRawImage
      • SUIScrollbar
      • SUISlider
      • SUIText
      • SUIToggle
      • SUIToolTipHint
      • SVirtualCamera
      • SVoiceZone
    • Types
      • SAnimationState
      • SAnimatorStateInfo
      • SAvatar
      • SAvatarAppearance
      • SChatMessage
      • SColor
      • SCommandBuffer
      • SDateTime
      • SGameObject
      • SGenre
      • SGroupInfo
      • SInventoryItem
      • SJointLimits
      • SJointMotor
      • SJointSpring
      • SLandmark
      • SLayerMask
      • SMaterial
      • SMath
      • SMusicDirectory
      • SMusicStation
      • SMusicStationList
      • SNetworkMessageLua
      • SOutfit
      • SParticle
      • SPhysicsHit
      • SPublicRegion
      • SQuaternion
      • SRay
      • SRect
      • SResource
      • SScore
      • SScoreRank
      • SString
      • SSubRegion
      • STrackInfo
      • STuneIn
      • SUIRaycastResult
      • SUserRegions
      • SVector
      • SUserProfile
      • SSocialMedia
      • SWebResponse
  • Server Scripting
    • Library
      • SMath
    • Network
      • SShared
      • SWebservice
    • Region
      • SAvatar
      • SCell
      • SObject
      • SParcel
      • SParcelManager
      • SRegionScript
      • SScene
    • Storage
      • SDatabase
  • Guides
    • Persistence
    • Server Scripts
  • Sample Projects
    • Smart Lights
    • Trivia Box
  • Changelog
    • API Changelog
  • Support
    • Report An Issue
Powered by GitBook

Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.

On this page
  • Index
  • Functions Index
  • Properties Index
  • Functions
  • SetOverrideVoice
  • ClearOverrideVoice
  • SetOverrideVideo
  • ClearOverrideVideo
  • AddAuthVoiceUser
  • RemoveAuthVoiceUser
  • AddAuthVideoUser
  • RemoveAuthVideoUser
  • Properties
  • Enabled
  • AllowVoice
  • AllowVideo
  • ConnectVoiceService
  • ConnectVideoService
  • Priority
  • AreaName
  • Spatialized
  • SpatialDropoff
  • SpatialStereo
  • SpatialDistance
  • Global
  • AuthVideoUsers
  • AuthVoiceUsers
  • GameObject

Was this helpful?

Export as PDF
  1. Client Scripting
  2. Components

SVoiceZone

Index

Functions Index

Function Name

Properties Index

Property Name

Functions

SetOverrideVoice

void SetOverrideVoice (bool enabled)

Set voice to override the original voice.

Parameter
Type
Description

Space.Host.ExecutingObject.VoiceZone.SetOverrideVoice(true)

ClearOverrideVoice

void ClearOverrideVoice ()

Clear the overriding voice.

Space.Host.ExecutingObject.VoiceZone.ClearOverrideVoice()

SetOverrideVideo

void SetOverrideVideo (bool enabled)

Function Description

Parameter
Type
Description

Space.Host.ExecutingObject.VoiceZone.SetOverrideVideo(true)

ClearOverrideVideo

void ClearOverrideVideo ()

Function Description

Space.Host.ExecutingObject.VoiceZone.SetOverrideVideo(true)

AddAuthVoiceUser

void AddAuthVoiceUser (uint userID)

Add a user to AuthVoiceUser by his ID.

Parameter
Type
Description

Space.Host.ExecutingObject.VoiceZone.AddAuthVoiceUser(000000000)

RemoveAuthVoiceUser

void RemoveAuthVoiceUser (uint userID)

Remove a user from AuthVoiceUser by his ID.

Parameter
Type
Description

lSpace.Host.ExecutingObject.VoiceZone.RemoveAuthVoiceUser(000000000)

AddAuthVideoUser

void AddAuthVideoUser (uint userID)

Function Description

Parameter
Type
Description

Space.Host.ExecutingObject.VoiceZone.AddAuthVideoUser(000000000)

RemoveAuthVideoUser

void RemoveAuthVideoUser (uint userID)

Remove a user from AuthVoiceUser by his ID.

Parameter
Type
Description

Space.Host.ExecutingObject.VoiceZone.RemoveAuthVideoUser(000000000)

Properties

Enabled

bool Enabled get set

Whether the Voice Zone component is Enabled

Space.Host.ExecutingObject.VoiceZone.Enabled = true
--clicking this object will Enable/Disable it's Voice Zone component
thisGameObject = Space.Host.ExecutingObject
component = thisGameObject.VoiceZone

OnClick = function()
component.Enabled =  not component.Enabled
end

thisGameObject.AddClickable()
thisGameObject.Clickable.OnClick(OnClick)

AllowVoice

bool AllowVoice get set

Whether allows voice.

Space.Host.ExecutingObject.VoiceZone.AllowVoice = true

AllowVideo

bool AllowVideo get set

Whether allows video.

Space.Host.ExecutingObject.VoiceZone.AllowVideo = true

ConnectVoiceService

bool ConnectVoiceService get set

Property Description

Space.Host.ExecutingObject.VoiceZone.ConnectVoiceService = true

ConnectVideoService

bool ConnectVideoService get set

Property Description

Space.Host.ExecutingObject.VoiceZone.ConnectVideoService = true

Priority

int Priority get

The priority of the voice zone

priority = Space.Host.ExecutingObject.VoiceZone.Priority

AreaName

string AreaName get

The name of area.

priority = Space.Host.ExecutingObject.VoiceZone.AreaName

Spatialized

bool Spatialized get

Whether the voice zone is spatialized.

isSpatialized = Space.Host.ExecutingObject.VoiceZone.Spatialized

SpatialDropoff

bool SpatialDropoff get

Whether the voice zone is spatialized drop off.

spatialDropoff = Space.Host.ExecutingObject.VoiceZone.SpatialDropoff

SpatialStereo

bool SpatialStereo get

Whether the voice zone is spatial stereo.

spatialStereo = Space.Host.ExecutingObject.VoiceZone.SpatialStereo

SpatialDistance

float SpatialDistance get

The spatial distance of the voice zone.

floatDistance = Space.Host.ExecutingObject.VoiceZone.SpatialDistance

Global

bool Global get

Whether the voice zone is global.

isGlobal = Space.Host.ExecutingObject.VoiceZone.Global

AuthVideoUsers

uint[] AuthVideoUsers get

Return an array of auth video user.

tableAuthVideoUsers = Space.Host.ExecutingObject.VoiceZone.AuthVideoUsers

AuthVoiceUsers

uint[] AuthVoiceUsers get

Property Description

tableAuthVideoUsers = Space.Host.ExecutingObject.VoiceZone.AuthVoiceUsers

GameObject

Property Description

theGameObject = Space.Host.ExecutingObject.VoiceZone.GameObject
PreviousSVirtualCameraNextTypes

Last updated 2 years ago

Was this helpful?

void (bool enabled)

void ()

void (bool enabled)

void ()

void (uint userID)

void (uint userID)

void (uint userID)

void (uint userID)

bool get set

bool get set

bool get set

bool get set

bool get set

int get

string get

bool get

bool get

bool get

float get

bool get

uint[] get

uint[] get

SGameObject get

GameObject get

SGameObject
SetOverrideVoice
ClearOverrideVoice
SetOverrideVideo
ClearOverrideVideo
AddAuthVoiceUser
RemoveAuthVoiceUser
AddAuthVideoUser
RemoveAuthVideoUser
Enabled
AllowVoice
AllowVideo
ConnectVoiceService
ConnectVideoService
Priority
AreaName
Spatialized
SpatialDropoff
SpatialStereo
SpatialDistance
Global
AuthVideoUsers
AuthVoiceUsers
GameObject