Some of that code was generating some errors for me so I changed it to this. I added some comments to explain a little more.
function event_item_pickup { if(event_type == event_click || (event_type == event_scan)) //it didn't like the if event that you gave me for some reason. { //snd_play(click_wav,100,0); //i don't have any wav files in my project //check_for_inventory(my._item); //is this a custom functin?
temp.x = pointer.x; //this stuff is to move a 3d object temp.y = pointer.y; temp.z = 200; // move the object 200 quants below the camera, play with this value vec_for_screen(temp.x, camera); my.x = temp.x; my.y = temp.y; my.z = temp.z; } }