ID:161539
 
Does anyone know how the target system works? Or how to create it? Does it work with area?
What target system?
HOw to make a target system, so that kif you're far away, the attack only damages your target, and yoru target only.
In response to Jamora1124
Better, but you still need to use real English, here, not a hodgepodge of half-questions.

client
//acquire a target:
Click(object)
if(ismob(object))
mob.target = object
..()

mob
var/tmp/mob/target //declared as tmp as saving references to other players causes major problems
//attack a target:
verb/attack()
if(!target)
usr << "You don't have a target."
else
usr << "You kill your target."
del(target)