setSoundEffect (VBS1)
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 1
- Version:
- 2.12.14
Description
- Description:
- Defines the different sound effects. Sound / voice plays a 2D / 3D sound from CfgSounds. SoundEnv plays an enviromental sound from CfgEnvSounds. SoundDet (only for triggers) creates a dynamic sound object attached to a trigger defined in CfgSFX.
Syntax
- Syntax:
- trigger or waypoint setSoundEffect [sound, voice, soundEnv, soundDet]
- Parameters:
- trigger or waypoint: Object
- sound: String
- voice: String
- soundEnv: String
- soundDet: String
- Return Value:
- Nothing
Examples
- Example 1:
trigger setSoundEffect ["Alarm", "", "", ""]
Additional Information
- Multiplayer:
- Behaviour unknown.

