mob
NPC
Brolly
name = "{NPC} Brolly"
icon = 'Enemy.dmi'
density = 1
Health=25
Defence=1
Strength=2
New()
. = ..()
spawn()
Wander()
var/mob/PC/P
proc/Wander()
while(src)
var/Found = FALSE
for(P in oview(6)).
step_away(src,P)
Found = TRUE
break
if(Found != TRUE)
sleep(8)
sleep(8)
sleep(8)
i get these errors
NPCs.dm:28:error: P: undefined type: P
NPCs.dm:29:error: P: undefined type: P
i thought i defined P by doing
var/mob/PC/P