Blockland Forums > Modification Help

Server-sided decals/faces inside a add-on

Pages: (1/3) > >>

Bauklotz:

I am making a add-on (Gamemode_Something, not Decal_Something or Face_Something) which is meant to include decals and faces, included inside the add-on .zip, without the other person having to download/enable another add-on. Is this possible?

Bauklotz:

Bump. I need help :c

MegaScientifical:

You can make them download the decals with this:


--- Code: ---datablock DecalData(NAME) {
textureName = "LOCATION";
};
--- End code ---

Example:


--- Code: ---datablock DecalData(ADecal1) {
textureName = "Add-Ons/Gamemode_Something/MyFace";
};
--- End code ---


Bauklotz:

Okay, would I then be able to do something like this?

--- Code: ---someclient.player.setDecalName(ADecal1);
--- End code ---

I don't want them to be able to select in the avatar selection GUI, I just want them to be forcable by the server, and be visible on client's players.

MegaScientifical:

That I'm not sure. It seems like you'd need to actually set the decal as one to have it added to the setDecalName and setFaceName listings... I'm not sure.

Pages: (1/3) > >>

Go to full version