Bump() not a proc? in Developer Help
Door icon='Turfs.dmi' icon_state="Door" density=1 Bump() icon_state="Door_Open" density=0 sleep(10) icon_state="Door"
how would i make it so,if the player bumps it it does that?
atom/proc/Bumped() //Define the Bumped() process for all atoms, so we can call it with almost anything.mob Bump(atom/A) //When a mob bumps into something... A.Bumped(src) //Call that something's Bumped() process, passing the mob as an argument so it knows what bumped it. ..() //Do whatever else Bump() should be doingturf Door icon='Turfs.dmi' icon_state="Door" density=1 Bumped(mob/M) //When something bumps into this door... if(istype(M,/mob)) //Make sure it is a mob. Although right now only mobs can call the Bumped() process, you might later decide to extend it to all movable atoms, so it's better to be on the safe side icon_state="Door_Open" //Open the door! density=0 sleep(10) icon_state="Door"