the function world.entityPortrait creates a list of drawables but how do you display them? Also does anyone know what are the available portrait modes for this function? Thank you.
I was trying to get them to display in a gui window similar to how the crew has portraits next to their names in the sip ai crew panel. The gui is created in scripts canvas using the penguinGUI library and I attached a screenshot of its current state, it needs a lot of fixing up in terms of looks but it is completely functional.
Sorry I haven't worked with the script canvases at all. But for each object in world.entityPortrait(id, "full"), you'll want to put the image property on a new image widget. Code: for i,v in ipairs(world.entityPortrait(id, "full")) do local imagePath = v.image end
I tried it out and it also works in a script canvas because the canvas has a similar function called canvasDrawImage which works in a very simialr manner to widget.setImage. I think I should be able to get working now thank you for the help.