obj
icon='ship.dmi'
missile
homing_missile
icon_state="h missile"
density=1
New()
while(src)
sleep(5)
var/a=locate(/obj/barrel) in view(src)
if(a)
walk_to(src,a,1,1)
Bump(var/atom/A)
if(istype(A,/obj/barrel))
flick("explosion",A)
barrel
icon_state="barrel"
density=1
New()
while(src)
sleep(10)
walk_rand(src)
Problem description:
Okay, what I read from the reference was that walk() and other automated moving functions call Move(), so they can use Bump(). However, this simple code is not working for me, and it is only for testing purposes, so you can nitpick away at it, but remember my problem is with Bump().
Additionally, any type of mob/Bump() works for me but not any type of obj/Bump() like so:
obj
Bump(var/atom/A)
world<<"[src] bumps [A]"
mob
Bump(var/atom/A)
world<<"[src] bumps [A]"
I just realized something, is it something stupid like I didn't put in a ..()?
*Edit*
Also, you set the minimum distance to one, so when it gets close to it, it stops and doesn't bump into it.