Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_Entity::CloneMaterial Method
Syntax
C++
int CloneMaterial(IFunctionHandler * pH, int slot);
Parameters 
Description 
nSlotId 
On which slot to clone material. 
sSubMaterialName 
if non empty string only this specific sub-material is cloned. 

!

Entity.CloneMaterial( nSlotId, sSubMaterialName )

! ! Replace material on the slot with a cloned version of the material. ! Cloned material can be freely changed uniquely for this entity. ! !  

!  

 

Copyright (c) 2012. All rights reserved.