ID:156088
 
well i checked the refs for bump seeing then when my charater throws and obj if it hit's somthing i want it to do damg if it's a mob and get delete or just get delete if it i a turf

well heres the bump code could you plz explin it if so to say i have a systerm for throwing and item witch i do .

atom/movable/proc/Bump(atom/obstacle)
if(obstacle) obstacle.Bumped(src)

atom/proc/Bumped(atom/movable/mover)
// do nothing by default
well i found i way to use it but can you explain this for me

obj
Kunai
icon = 'Weapons.dmi'
icon_state = "Kunai"
density = 1
Bump()// ??? when it hits the end of the screen it stays there
flick("hit_state",src)
sleep(1)
loc = null

mob
verb
Throw()
var/direction = (usr.dir)
var/stepLocation = get_step(src, direction)
if(stepLocation)
var/obj/Kunai/Progectile = new(stepLocation)
walk(Progectile, direction, 1)
In response to Jamesy577
also how would i make it so that it shows up one tile away from you and not two becuase they only seem to be visable when they are a tile between you and the obj
In response to Jamesy577
They're moving that fast, so you only see it when there's actual distance between you and whatever it Bump()s into.