i'm having an error making a proc,that happens upon death,which drops all objects (and destroys undroppable ones) (okay okay,2 errors!)
here's the code:
mob/proc/dropdeath()
var/obj/O
for(O in usr)
if(O.Move(usr.loc))
usr.weight-=O.weight
usr.addedweight-=O.weight
else
usr << "Upon death,[O] got destroyed!"
del(O)
and here are the problems:
Combat.dm:92:error:O.weight:undefined var
Combat.dm:93:error:O.weight:undefined var
edit:forgot to write a topic ^_^;
|
||||||||||||||||||||