mob
Bump(mob/M)
if(istype(M,/mob/player) || istype(M,/mob/enemy))//if it's obj..
//attack here
//------------------Proc for Doors----------------------------
atom/proc/Bumped(atom/movable/A)
atom/movable/Bump(atom/A)
..()
A.Bumped(src)
//-------------------Door
obj/AAAroofs
icon = 'Buildings.dmi'
name = ""
Door_1
Door_1
density = 1
icon_state = "door 1-1"
var/open = 0
// layer = 5
Bumped(obj/src)
if(src:open == 0)
src:icon_state = "door 1-2"
src:density = 0
sleep(30)
src:icon_state = "door 1-1"
src:density = 1
Enter()
if(src.open == 0)
return
Problem description:
Well the doors worked before , but when i was making a bump attack , the door stop working , i think the attack bump is messing it , personaly i suck at bump so could use help as i am just guessing atm...
if it is the bump attack , how can i make them seperate