startSoundShader
This is a script event on id Tech 4 engines, present on DOOM 3, Quake 4 and Prey. Below you can find its signature for each game that declares it.
DOOM 3
Plays a specific sound shader on the channel and returns the length of the sound in seconds. This is not the prefered method of playing a sound since you must ensure that the sound is loaded.
| Property |
Value |
| Type |
script event |
| Returns |
float |
| Parameters |
string shaderName, float channel |
| Section |
all entities |
Quake 4
| Property |
Value |
| Type |
script event |
| Returns |
float |
| Parameters |
string, float |
Prey
| Property |
Value |
| Type |
script event |
| Returns |
float |
| Parameters |
string, float |