how do i make it so the bullet disapears after it hits something? my code is:
mob/verb/Fireball()
var/obj/fireball/fireball = new /obj/fireball(src.loc)
walk(fireball,src.dir)
obj/fireball
icon = 'spells.dmi'
icon_state = "fireball"
density = 1
Bump(atom/O)
if(ismob(O))
usr << "[O] is hit by a firball!"
ID:176758
![]() Dec 14 2002, 6:42 am
|
|
Koolguy900095 wrote:
how do i make it so the bullet disapears after it hits something? my code is: Problem: usr has no place in Bump(). If you want to know who fired the fireball, then add a var to your obj/fireball so it knows who fired it: obj/fireball |
if(ismob(O))
usr << "[O] is hit by a firball!"
del(src)