Entity
Physical object in the game world
Functions
EntityCanBeCarried()
View source »Returns if a entity can be carried
Returns
-
bool
Can be carried
EntityEmitBudgetSound(sound, range, volume, pitch)
View source »Emits a that is only networked to nearby players
Parameters
-
sound
string
Sound path
-
range
int
default: 660
Radius in Source units to network the sound to
-
volume
int
default: 1
Volume of the sound
-
pitch
int
default: 100
Pitch of the sound
EntityEmitQueuedSounds(sounds, delay, spacing, volume, pitch)
View source »Emits queued sounds on an entity one by one
Parameters
-
sounds
A table of all the sounds
-
delay
int
default: 0
The delay between each sound
-
spacing
int
default: 0.1
The spacing between each sound
-
volume
int
default: 1
The volume of each sound
-
pitch
int
default: 100
The pitch of each sound
Returns
-
int
How long it will take to emit all the sounds
EntityIsButton()
View source »Returns if entity is a button
Returns
-
bool
Is button
EntityIsChair()
View source »Returns if a entity is a chair
Returns
-
bool
Is chair
EntityIsDoor()
View source »Returns if the entity is a door
Returns
-
bool
Is door
EntityIsDoorLocked()
View source »Returns if a door is locked
Returns
-
bool
Is locked
EntityIsPropDoor()
View source »Helper function that can detect if the door is a players prop door
Returns
-
bool
Is player prop door