Raised This Month: $ Target: $400
 0% 

prechacing and emiting sounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
StormZone
BANNED
Join Date: Nov 2008
Location: [RO]Hunedoara/Petrosani
Old 10-06-2009 , 14:46   prechacing and emiting sounds
Reply With Quote #1

is there a better way of prechacing a sound and emiting it instead of these?
PHP Code:
if ( file_exists "sound/warcraft3/impalehit.wav" ) )
    {
        
precache_sound "warcraft3/impalehit.wav" );
    } 
PHP Code:
//impale
            
if ( file_exists"sound/warcraft3/impalehit.wav" ) == )
            {
                
emit_soundenemyCHAN_ITEM"warcraft3/impalehit.wav"1.0ATTN_NORM0PITCH_NORM );
            } 
Thanks.
StormZone is offline
Send a message via Yahoo to StormZone Send a message via Skype™ to StormZone
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode