s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
SoundEvent
chevron_left
Classes
class
SoundEvent
search
Constructors
functions
SoundEvent
Properties
data_object
AirAbsorption
remove_circle
Decibels
data_object
DefaultMixer
data_object
Distance
data_object
DistanceAttenuation
data_object
Falloff
data_object
Occlusion
data_object
OcclusionRadius
data_object
Pitch
remove_circle
Reflections
data_object
ResourceVersion
data_object
SelectionMode
data_object
Sounds
data_object
Transmission
data_object
UI
data_object
Volume
Methods
lock
CreateAssetTypeIcon
SoundEvent
A sound event. It can play a set of random sounds with optionally random settings such as volume and pitch.
class
Sandbox
.
account_tree
extends
GameResource
Sandbox.Engine
build
Constructors
1
SoundEvent
(
)
data_object
Properties
16
AirAbsorption
bool
Allow this sound to be absorbed by air
Decibels
obsolete
int
How loud is this sound, affects how far away it can be heard
DefaultMixer
MixerHandle
Default mixer to play this sound with if one isn't provided on play.
Distance
float
How many units the sound can be heard from.
DistanceAttenuation
bool
Should the sound fade out over distance
Falloff
Curve
The falloff curve for the sound.
Occlusion
bool
Allow this sound to be occluded by geometry
OcclusionRadius
float
The radius of this sound's occlusion in inches.
Pitch
RangedFloat
The base pitch of the sound.
Reflections
obsolete
bool
Allow this sound to trace reflections, allowing it to be heard indirectly
ResourceVersion
int
SelectionMode
SoundSelectionMode
Selection strategy to use when picking from multiple sounds.
Sounds
List`1
A random sound from the list will be selected to be played.
Transmission
bool
Allow this sound to be transmitted through geometry
UI
bool
Is this sound 2D?
Volume
RangedFloat
How loud the sound should be.
functions
Methods
1
CreateAssetTypeIcon
(
width
,
height
)
Bitmap
Inheritance
Resource
GameResource
SoundEvent
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.