obj/bullet
icon='keyblades.dmi'
density=1
Bump(mob/M)
if(istype(M,/mob))
M.Health-=5
M.Death()
del(src)
else
..()
mob/proc
Death()
if(src.Health<=0)
world << "[src] died!"
src.loc=locate(2,2,1)
src.Health = 100
src.Mana = 100
mob/verb
Throw_Keyblade()
if(src.kequipt==0)
src<<"You need a keyblade equipted to do this."
else
view()<<"[src] throw's his keyblade!"
var/obj/bullet/B=new(usr.loc)
walk(B,usr.dir)
sleep(7)
walk(B,turn(src.dir,180))
Problem description: Now, I have 2 main problem's. One is that when it comes back to me, it hurt's me and two, I can keep on shooting them even before it comes back to me. How can I fix does two thing's?
2) Again, make another var keeping track to see if it was already thrown and spawn()/sleep() the var back to 0
3) De-indent sleep()
- GhostAnime