ok so i used to game program years back and now im back into it, but really rusty lol.
i have a question: how can you make view entities (ones created by ent_createlayer) respond to mouse clicks?
heres some code:
you=ent_createlayer("grass.mdl",0,1);
you.x=100;
you.y=0;
you.z=0;
you.enable_click=on;
you.event=item_move;
and the item_move instruction,created for debugging:
function item_move()
{
my.pan+=10;
}
this will work if i just use ent_create("grass.mdl",nullvector,null) instead of ent_createlayer but i need the entity to on the screen as an inventory item.