ID:166353
 
I've no clue how to word this, haha. How would one delete certain objects from the client.images? I've tried setting up an object under /image tried adding it using New() when created, but that didn't really work.
    else if(Target == "Rife")
M.loc = locate(/area/Paths/Worlds/Rife)
if((M.StoryPoint == "Rife Forest") || ("Plains" in M.Worlds)) return
new /image/Rife/Town/Plains_Barrier(null, M, /turf/Image_Spots/Rife/Town/Plains_Barrier)

M is the player and is added to the playerthrough the new()
image
New(l, mob/M, location)
//world << location
var/image/I = image(src.icon,locate(location),src.icon_state)
M << I
Rife
Town
Plains_Barrier
icon='Blockades.dmi'
icon_state="Barrier Full"


The code isn't working I'm probably adding it wrongly. Another question is, How would I add it to the player and then look it up within the player to get rid of it?
Example:
mob/verb/Attck(M as mov in view())
var/image/I = image(src,'Aim.dmi') //create the overlay
src << I // let you see the overlay
M.Health --
if(M.Health <= 0)
del I // delete the overlay
del M // delet the mob
In response to Gooseheaded
Hmn. So I'd always have to keep it as a variable. I'll toss it into a list owned by the player then. So I can delete it later, by number, if ther're more than one at a time. Thanks.