s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
SoundEvent
chevron_left Classes
class
SoundEvent

Constructors

functionsSoundEvent

Properties

data_objectAirAbsorptionremove_circleDecibelsdata_objectDefaultMixerdata_objectDistancedata_objectDistanceAttenuationdata_objectFalloffdata_objectOcclusiondata_objectOcclusionRadiusdata_objectPitchremove_circleReflectionsdata_objectResourceVersiondata_objectSelectionModedata_objectSoundsdata_objectTransmissiondata_objectUIdata_objectVolume

Methods

lockCreateAssetTypeIcon
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
obsoleteint
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
obsoletebool
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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter