Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
SetMaterialFloat
Syntax
C++
int SetMaterialFloat(IFunctionHandler * pH, int slot, int nSubMtlId, const char * sParamName, float fValue);
Parameters 
Description 
int nSubMtlId 
Specify sub-material by Id 
const char * sParamName 
Name of the material parameter. 
float fValue 
New material parameter value.
 
nSlot 
On which slot to change material. 

Syntax: Entity.SetMaterialFloat( nSlotId, nSubMtlId, sParamName, fValue ) 

Change material parameter.

Copyright (c) 2012. All rights reserved.