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
ID:148878
![]() Aug 28 2002, 1:08 am
|
|
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?
|
YEAHAH! Thanks! Now i can make a onscreen inventory!
|
That would clear out all the objects in client.screen, but he might have other non-weapon things he wants to keep.
|
Because you're thinking "delete" instead of "remove from the list".
Lummox JR