Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
PlaySoundEventEx
Syntax
C++
int PlaySoundEventEx(IFunctionHandler * pH, const char * sSoundOrEventName, uint32 nSoundFlags, uint32 nSoundFlagsExtended, float fVolume, Vec3 vOffset, float minRadius, float maxRadius, uint32 nSemantic);
Parameters 
Description 
uint32 nSoundFlags 
Sound flags, specify how to play sound. 
uint32 nSoundFlagsExtended 
Extended sound flags. 
float fVolume 
The sound's volume between 0-1 
Vec3 vOffset 
Position offset in regards to the entity. 
float minRadius 
min radius 
float maxRadius 
max radius 
uint32 nSemantic 
Semantical information what this sound is. 
sSoundFilename 
Name of the sound file to play. 
Return 
Sound ID, or nil if failed to play sound.
 

Syntax: Entity.PlaySoundEventEx( const char *sSoundFilename,uint32 nSoundFlags,uint32 nSoundFlagsExtended,float fVolume,Vec3 vOffset,float minRadius,float maxRadius,uint32 nSemantic ) 

Play sound file attached to the entity.

Copyright (c) 2012. All rights reserved.