ID:147883
 
How would i allow it so Only the one player can see the overlay.
mob
var
mob
target
client
Click(atom/target,location)
if(ismob(target))
mob.target = target
target.overlays += image('Selecting.dmi',usr)
obj
Selectedchar
icon = 'Selecting.dmi'
layer=MOB_LAYER+1
Turles9000 wrote:
How would i allow it so Only the one player can see the overlay.

client
Click(atom/target,location)
if(ismob(target))
mob.target = target
<font color=#663300>src << </font>image('Selecting.dmi',<font color=#663300>target</font>)
In response to Shadowdarke
Thanks one more question how would i get rid of the old target if the user clicks on a different person?
In response to Turles9000
Create a var belonging to /client, and set that var to the selection image before you show the image to them. Then delete the image when you want to get rid of the selection overlay.

<code>client var/image/selectionimage=null Click(mob/target,location) if (istype(target)) mob.target=target del selectionimage //Delete old image selectionimage=image('Selecting.dmi',target) src << selectionimage</code>