function downloadDecalPath(%path)
{
for(%file=findFirstFile("Add-Ons/" @ %path @ "/*.png");%file!$="";%file=findNextFile("Add-Ons/" @ %path @ "/*.png"))
{
%obj = datablock DecalData()
{
textureName = %file;
preload = true;
};
%obj.setName("BB_DecalDownload_" @ strReplace(strReplace(strReplace(%file,".png",""),"Add-Ons/",""),"/","_"));
}
}
downloadDecalPath("Face_BlockBastion");
downloadDecalPath("Decal_BlockBastion");
Decal_BlockBastion contains a "testFaec.png" face image file which is correctly sized and everything, but when I do the following, the client does not see the face:
clientGroup.getObject(1).setFaceName("testFaec");