Blockland Forums > Modification Help
Problem with 'face/decal' force-download
Bauklotz:
I tried using both findclientbyname and getting the 2nd object in the clientGroup (2 players were in the server). But none work.
M:
==>echo(isFunction("GameConnection","setFaceName"));
0
==>echo(isFunction("Player","setFaceName"));
1
The problem should have been pretty damn obvious when it threw an unknown command error.
ZSNO:
I'm pretty sure decals and faces are now downloaded when you join a server...
Unless of course I have like 50 facepacks that are invisible.
lordician:
--- Quote from: ZSNO on December 09, 2010, 04:40:11 PM ---I'm pretty sure decals and faces are now downloaded when you join a server...
Unless of course I have like 50 facepacks that are invisible.
--- End quote ---
Lol.
Bauklotz:
Actually,
--- Code: ---if(isObject(%decal = nametoid("BB_DECAL_"@%this.bb_classui)))
%this.player.setDecalName(%decal.getName());
--- End code ---
--- Code: ---datablock decalData(BB_DECAL_SCOUT)
{
textureName = $BB::Path @ "decals/decal-scout";
preload = true;
};
--- End code ---
The decal is never displayed. (the top code is located in GameConnection::spawnPlayer)