Ambient allows players to play a permanent sfx as long as they are in the area with an ambient sfx set. The ambient sfx may be blank.
Packets
area_ambient
This packet is sent whenever a player join the area or whenever the ambient of that area is set or cleared.
When a player join the area
The packet is sent exclusively to the player that freshly joins the area in order to update them on the current ambient sfx.
When the ambient is set or cleared
The packet is sent to all players currently in the area.
Syntax
area_ambient#<filename>#%
Commands
/set_ambient
Sets the current area's ambient sfx. All clients within the area will immediately start playing the newly assigned ambient sfx. The area's ambient sfx overrides the current background position's ambient sfx.
/clear_ambient
Clears the current area's ambient sfx. If an ambient sfx was previously playing, it will be reset and the current background position's ambient sfx will play instead if set.
/set_zone_ambient
Sets the current zone's ambient sfx. This is equivalent to using /set_ambient in each areas of the zone.
/set_zone_ambient tv_static.wav
/clear_zone_ambient
Clears the current zone's ambient sfx. This is equivalent to using /clear_ambient in each areas of the zone.
Ambient allows players to play a permanent sfx as long as they are in the area with an ambient sfx set. The ambient sfx may be blank.
Packets
area_ambient
This packet is sent whenever a player join the area or whenever the ambient of that area is set or cleared.
When a player join the area
The packet is sent exclusively to the player that freshly joins the area in order to update them on the current ambient sfx.
When the ambient is set or cleared
The packet is sent to all players currently in the area.
Syntax
Commands
/set_ambient
Sets the current area's ambient sfx. All clients within the area will immediately start playing the newly assigned ambient sfx. The area's ambient sfx overrides the current background position's ambient sfx.
/clear_ambient
Clears the current area's ambient sfx. If an ambient sfx was previously playing, it will be reset and the current background position's ambient sfx will play instead if set.
/set_zone_ambient
Sets the current zone's ambient sfx. This is equivalent to using /set_ambient in each areas of the zone.
/clear_zone_ambient
Clears the current zone's ambient sfx. This is equivalent to using /clear_ambient in each areas of the zone.