Removal of client.screen in Developer Help
|
|
Whenever i remove all the obj/weapons of my client.screen, it removes them out of my inventory to, i want it to only delete them onscreen. Why doesnt my code work?
mob/verb Inventory() if(!usr.openalr) client.OpenPopup(usr,length=3,width=3,name="Inv") usr.openalr = 1 else client.ClosePopup("Inv") for(var/obj/weapons/P in client.screen) del(P) usr.openalr = 0
|
|
Because you're thinking "delete" instead of "remove from the list".
Lummox JR