ID:175806
 
Question...why doesnt flick work here

obj
Sword
icon = 'sword.dmi'
layer=MOB_LAYER+1
Bump(mob/M)
flick("hit",M)



Im using this in my battle system where it creates the object right ontop of the mob.. but the bump doesnt work.
anyone help?

ETG

Erdrickthegreat2 wrote:
Question...why doesnt flick work here

obj
Sword
icon = 'sword.dmi'
layer=MOB_LAYER+1
Bump(mob/M)
flick("hit",M)

Im using this in my battle system where it creates the object right ontop of the mob.. but the bump doesnt work.
anyone help?

Well it wouldn't Bump() unless you called Move() to move it into place. Clearly the place you need to use flick() is in the proc that creates the sword effect in the first place.

Lummox JR
In response to Lummox JR
Well what could i replace Bump with for doing, say damage?

ETG
In response to Erdrickthegreat2
obj
Sword
verb
Slash()
if(isturf(loc.loc))
var/obj/swordHit/H = new(loc.loc) //Since it's loc is the mob carrying it, loc.loc is the turf he's standing on.
H.dir = usr.dir
step(H,dir)
spawn(5) del(H)

obj
swordHit
density = 1
layer = MOB_LAYER+1
Bump(atom/A)
if(ismob(A))
var/mob/M = A
del(M)


[edit] Oops, messed something up in there.
In response to Garthor
well thats not the way my attacking system works so, is there a way i can call a proc or something to check if theres a mob in the objects location?

ETG
In response to Erdrickthegreat2
nvm figured it out