rendertarget_vids(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

πŸ’… rendertarget_vids(3) πŸ’…

okay bestie, welcome to the Arcan Lua API side of the group chat. this page is all about rendertarget_vids, and honestly it's giving β€œlet the function hand you the list” energy. 🫢

πŸŽ€ NAME πŸŽ€

rendertarget_vids β€” get an indexed table of vids in a rendertarget. yup, that's the whole name-vibe, and it ate. ✨

✨ SYNOPSIS ✨

tbl
rendertarget_vids( rtvid )

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so rendertarget_vids( rtvid ) populates a list of VIDs that match the contents of a specific rendertarget at the time of calling. it's literally a β€œwho's in the room right now” list, and the room is that rendertarget. πŸ‘‘

this is highkey useful for certain mass-actions when you don't want to manually maintain a list of vids that you collected at allocation time. like, not me keeping a whole side-quest list when the function can just give me the indexed table. fr fr.

if rtvid is not specified, the current default attachment will be used. no extra args needed, the default just slides in. πŸ’…

🌸 EXAMPLE 🌸

here's the example, copied exactly so you can run the vibe yourself:

       function rendertarget_vids0()
             local a = color_surface(8, 8, 255, 0, 0);
             local b = color_surface(4, 4, 0, 255, 0);
             for i,v in ipairs(rendertarget_vids()) do
                   show_image(v);
                   print(a, b, v);
             end
       end

πŸ”₯ SEE ALSO πŸ”₯

  • targetcontrol β€” go peek, iykyk. 🌈

xoxo, your Arcan Lua API bestie πŸ’– β€” rendertarget_vids(3), October 2026. slay and stay iconic. πŸŽ€

πŸ“¦ where this page comes from