Author Topic: Rendering a player in a GUI?  (Read 2142 times)

How would I render a player object in a GUI like in the "Avatar Options" GUI?

A GUIObjectView object.

Avatar_Preview.dump(); important functions:
 .hideNode(object name, node name)
 .setnodecolor(object name, node name, color4 ("R G B A") color)
 .loadDSQ(object name, filepath dsq)
 .mountobject(object name, filepath model, (filepath?) skin, parentName, nodeName, lod)
 .setObject(object name, filepath model, (filepath?) skin)

In your case, setObject(1,"base/data/shapes/player/m.dts","add-ons/shapes/blank.png");, followed by a lot of hidenodes.


Revivotron intitialize!

This is working out fine, except I don't know how to apply/remove decals through the objectview. Any ideas?

Tried .setDecal(object name, decal name) and setFacename(object name, decal name)?

It'd actually be:

.setIFLFrame(object name, ifl name, frame) I think. Where ifl name is chest or something, and frame is -1 or 0.