Hey @TheEart, sorry I'm a bit out of the loop right now, but I think this is what you're looking for:
set_proto_data(pid, 20, get_proto_data(pid, 20) BWOR (flag))
with pid being the prototype you want to change, and flag one of the following flags:
0x00000008 - Flat (rendered first, just...