ID:143138
 
Code:
        getTarget(var/mob/M)
if(M != src) //attacking yourself is bad form
target = M //get the target
spawn() attackloop(M) //and start attacking it
var/targetoverlay = image('life.dmi',"FLASH")//make icon attached to mob
usr << M.overlays+=targetoverlay //allow usr to see it
Click()
usr.getTarget(src)


Problem description:
Improved battle system.dm:45:error:<< :bad variable
i've asked a myriad of people for help but so far no one could find out what is wrong with it, it says the << in
                usr << M.overlays+=targetoverlay  //allow usr to see it

is a bad variable but i dont see how, im trying to add it so that when you target something it will add a overlay to that mob but only the usr can see it.

-Tony
</<>
http://developer.byond.com/docs/ref/info.html#/client/var/ images

Additionally: make targetoverlay a mob variable, so that later you can remove it when you select a new target.