Skip to main content

SVoiceZone

Index

Functions Index

Function Name
void SetOverrideVoice (bool enabled)
void ClearOverrideVoice ()
void SetOverrideVideo (bool enabled)
void ClearOverrideVideo ()
void AddAuthVoiceUser (uint userID)
void RemoveAuthVoiceUser (uint userID)
void AddAuthVideoUser (uint userID)
void RemoveAuthVideoUser (uint userID)

Properties Index

Property Name
bool Enabled get set
bool AllowVoice get set
bool AllowVideo get set
bool ConnectVoiceService get set
bool ConnectVideoService get set
int Priority get
string AreaName get
bool Spatialized get
bool SpatialDropoff get
bool SpatialStereo get
float SpatialDistance get
bool Global get
uint[] AuthVideoUsers get
uint[] AuthVoiceUsers get
SGameObject GameObject get

Functions

SetOverrideVoice

void SetOverrideVoice (bool enabled)

Set voice to override the original voice.

ParameterTypeDescription
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

ParameterTypeDescription
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.

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

RemoveAuthVoiceUser

void RemoveAuthVoiceUser (uint userID)

Remove a user from AuthVoiceUser by his ID.

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

AddAuthVideoUser

void AddAuthVideoUser (uint userID)

Function Description

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

RemoveAuthVideoUser

void RemoveAuthVideoUser (uint userID)

Remove a user from AuthVoiceUser by his ID.

ParameterTypeDescription
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

SGameObject GameObject get

Property Description

theGameObject = Space.Host.ExecutingObject.VoiceZone.GameObject