ID:172394
 
Justing wondering if someone could tell me what arg i can use to get bump to del when hitting a area or show me a example of how to.I have tried many thing and still get runtimes.Thanks in advance
There isn't an argument to put into Bump() that will magically delete something, you have to make it a procedure within Bump().
mob
Bump(atom/A)
if(usr.bumpy) del(A)

In that instance, I used the variable "bumpy" to determine whether something should be deleted when it's bumped. Of course, you need a verb or something to "activate" or "deactivate" "bump-deleting" things.
In response to Enigmaster2002
ahh i see now thank you Enigmaster2002 im in debt to you
In response to Enigmaster2002
Use src instead of usr. Bump is the sort of proc that that could easily be screwed up by using usr.
mob/AInpc
New()
spawn()AI()
proc/AI()
while(1)
var/NewLoc=get_step(src,pick(1,2,4,8))
Move(NewLoc)

In that example, any time the AInpc bumps into anything there will be a runtime error.
Runtime error: Cannot modify null.bumpy
src: AInpc (/mob/AInpc)
usr: null
Bump(/mob)
Move((1,1,1),0)
AI()
New()

The error might look something like that.
In response to Loduwijk
Ah, thanks for pointing that out; for some reason, I thought Bump() was like Topic(), where the person using the link was usr. But I tested by doing:
mob
Bump(atom/A)
world << "usr: [usr]"
world << "src: [src]"
world << "Bumped: [A]"

and usr and src were identical.