ID:1671042
 
(See the best response by Sir Lazarus.)
Code:
mob/enemy/proc/drop()
world<<src
for(var/i=0;i<src.drop.len;i++)
var/obj/items/it=src.drop[i+1]
world<<it

var/obj/items/dropped=it.type;dropped.icon=it.icon;dropped.icon_state=it.icon_state
dropped=new dropped(locate(src.x,src.y,src.z))


Problem description: When a get the output from the world it gets exactly the icon i need, but that is not what is dropped. I actually get an error when i try to assign icon/icon_states into dropped. And ive tried to just spawn "it" too but it just appears invisble.
Please help thank you!!


of course this is just one way ive tried, ive tried various others all having similair results. I know im missing something, i just cant think of what
nevermind i got it haha
Best response
Mind posting your solution? That way, others can benefit from it. Right now this thread is just taking up space and without a solution you may as well delete it.