ID:147391
 


When you try to search the corpse its just says no corpse in view help please

mob/proc/SearchCorpse()
if(/obj/corpse in oview(5))
if(Wait==1)
return
Wait=1
LoadSearch()
Wait=0
src.lock=0
switch(rand(1,5))
if(1)
src << "You found nothing"
if (2)
src << "You found 4 Supplies"
Sup+=4
if (3)
src << "You found 6 Supplies"
Sup+=6
else
src<<"No corpse in view"
..()

obj/corpse
New(atom/newloc,atom/body)
icon=body.icon
icon_state="corpse"
..()
spawn(100) Decay()


There are no /obj/corpse in view, rather there are objects of type /obj/corpse in view. Change for(/obj/corpse in view) to for(var/obj/corpse/corpse in view)