Blockland Forums > Modification Help
Need help with GuiObjectView
(1/2) > >>
Pah1023:
So, I was looking at how the avatar editor has a 3d model, and I found out how you change nodes colors, but now I need to know how the face skin works, will someone help me?
Greek2me:
Try running a trace as you change the face in the avatar GUI.
Pah1023:
Tryed that, but they are in functions that are mad specific for the avatar preview. So i cant use them.
Nasoa:
Look at the original RTB, those aren't DSO'd.
computermix:
To set a face of a GUIObject preview, you need to use IFLFrames. I think.
To make an object appear in the GUI, you do:

--- Code: ---PlayerPreView.setObject("Object", "base/data/shapes/player/m.dts", "", "");

--- End code ---
Your face and decal (Chest I believe) is set by using:

--- Code: ---PlayerPreView.setIFLFrame("Object","face", <number>);
PlayerPreView.setIFLFrame("Object", "decal", <number>);

--- End code ---
I'm sure your wondering what <number> stands for. Well, its a number. I'm sure of that. But what each number stands for is different.
Each number is a line inside a file stored in "base/data/shapes/player/face.ifl" and "base/data/shapes/player/decal.ifl"
Here is my decal.ifl:

--- Code: ---base/data/shapes/player/decals/AAA-None.png
Add-Ons/Decal_WORM/worm_engineer.png
Add-Ons/Decal_WORM/worm-sweater.png
Add-Ons/Decal_Survivors/Survivor-Bill.png
Add-Ons/Decal_Survivors/Survivor-Francis.png
Add-Ons/Decal_Survivors/Survivor-Zoey.png
Add-Ons/Decal_Survivors/Survivor-Louis.png
Add-Ons/Decal_Jirue/LinkTunic.png
Add-Ons/Decal_Jirue/Knight.png
Add-Ons/Decal_Jirue/HCZombie.png
Add-Ons/Decal_Jirue/DrKleiner.png
Add-Ons/Decal_Jirue/DKnight.png
Add-Ons/Decal_Jirue/Chef.png
Add-Ons/Decal_Jirue/Archer.png
Add-Ons/Decal_Jirue/Alyx.png
Add-Ons/Decal_Hoodie/Hoodie.png
Add-Ons/Decal_Default/Space-Old.png
Add-Ons/Decal_Default/Space-New.png
Add-Ons/Decal_Default/Space-Nasa.png
Add-Ons/Decal_Default/Mod-Suit.png
Add-Ons/Decal_Default/Mod-Prisoner.png
Add-Ons/Decal_Default/Mod-Police.png
Add-Ons/Decal_Default/Mod-Pilot.png
Add-Ons/Decal_Default/Mod-DareDevil.png
Add-Ons/Decal_Default/Mod-Army.png
Add-Ons/Decal_Default/Meme-Mongler.png
Add-Ons/Decal_Default/Medieval-YARLY.png
Add-Ons/Decal_Default/Medieval-Tunic.png
Add-Ons/Decal_Default/Medieval-Rider.png
Add-Ons/Decal_Default/Medieval-ORLY.png
Add-Ons/Decal_Default/Medieval-Lion.png
Add-Ons/Decal_Default/Medieval-Eagle.png

--- End code ---
So, if you put "17" in <number> as my decal, I would have "Space-New.png" as my decal.

Really, a decal/face is a single frame that is always playing, I believe. I'm not any expert on this.

Anyways, I'm certain that's how it works. That's what I used for mine.
Navigation
Message Index
Next page

Go to full version