mob
player
var
target=null
icon='player.dmi'
icon_state="human"
Login()
world<<"[usr] has entered the universe"
..()
client/Click(mob/O)
//if what they clicked is a mob
if(istype(O,/mob/))
//if they clicked themselves
if(O == usr)
world<<"Coo coo cachu!"
//Otherwise, set the mob to the persons target
else
world<<"Moo!"
O.overlays += image('target.dmi')
usr.target=O.type
//if they clicked an object, let them know. And target it.
if(istype(O,/obj/))
world<<"LOL!"
O.overlays += image('target.dmi', icon_state="object")
usr.target=O.type
Problem description:
It claims that target is an undefined variable.
What am I doing wrong?