PDA

View Full Version : Sound played at the outbreak.



Moczulak
5th February 2013, 16:00
How to play a sound at a given location?
I mean the explosion caused bulletTrace, explosion does not have any model...

Please help me someone.

kung foo man
5th February 2013, 16:22
You can look at std/utils::playSoundOnPosition (http://killtube.org/downloads/cod2/exampleserver/main/std/utils.gsc)



playSoundOnPosition(position, name)
{
ent = spawn("script_origin", position);
ent playSound(name);
ent delete();
}

Moczulak
5th February 2013, 16:35
Very thanks ,really ;) You are good man :D