DIFF

class SoundObjectSource

Part of SoundController API

Constructors 1

void SoundObject(SoundParams soundParams)

Methods 11

proto void UpdateVariables(notnull array<float> values)
proto native void SetParent(IEntity parent, int pivot = -1)

Note: 'SoundObject' is not an Entity, and therefore can not be accessed by using 'IEntity.GetChildren', though internally 'SoundObject.SetParent' is similiar to 'IEntity.AddChild' by creating an 'EntityHierarchyComponent'

proto native IEntity GetParent()
proto native int GetHierarchyPivot()
proto native void SetPosition(vector position)

Note: Sets the position locally if parented, retrieves globally with the sound offset

proto native void SetSpeed(vector speed)

Note: Sets the speed locally if parented, retrieves globally with the parent speed

proto native vector GetSpeed()
proto native void SetOcclusionObstruction(float occlusion, float obstruction)
proto native void Initialize(SoundParams soundParams)