Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
SetParameterValue
Syntax
C++
int SetParameterValue(IFunctionHandler * pH, ScriptHandle SoundID, const char * sParameterName, float fParameterValue);
Parameters 
Description 
ScriptHandle SoundID 
unique SoundID of the sound 
const char * sParameterName 
name of the parameter to be changed ("distance"/"pitch") 
float fParameterValue 
value of the parameter to be set, always float 
nSemantic 
Semantical information what this sound is. 

bool - returns true if the SoundID was valid and the parameter value could be set

Syntax: Sound.SetParameterValue( int SoundID, const char *sParameterName, float fParameterValue ) 

Changes a parameter value of a specific sound (if supported)

Copyright (c) 2012. All rights reserved.