ID:262974
 
Code:
obj
water
icon_state = "water"
layer = MOB_LAYER+2
density = 1
Bump(var/atom/A)
if(istype(A,/mob))
src.loc=A.loc
else if(istype(A,/obj/Misc))
if(A.movable)
src.loc=A.loc
if(A.waterable)
src.loc=A.loc


Problem description:
It says movable and waterable are undefined vars, but they are defined. How do I define it so that it will recognize those vars?
Euhm, HOW are they defined?
In response to Mysame (#1)
obj
var
movable
waterable
In response to Justin Knight (#2)
Pretty lame, but uhhmm, change it to atom/var?
Here's a shortened version of that:
obj
water
icon_state="water"
layer=7
density=1
Bump(atom/A)
if(ismob(A)) A.loc=src
else if(istype(A,/obj/Misc))
var/obj/O=A
if(O.movable||O.waterable) A.loc=src
else return ..()