obj
icon='weapons.dmi'
Weapons
verb
Grab(var/obj/O)
set src in oview(1)
usr.contents.Add(O)
projectile
verb
Fire()
set src in usr.contents
spawn new src.projectile
var
projectile
rocketLauncher
icon_state="rocketlauncher"
projectile=new /obj/Bullets/rocketLauncher
Problem description:
e.e Only programming once a month is not a very good practice with BYOND <<
runtime error: Cannot create objects of type /obj/Bullets/rocketLauncher.
proc name: Fire (/obj/Weapons/projectile/verb/Fire)
usr: Dead_Demon (/mob/Player)
src: the rocketLauncher (/obj/Weapons/projectile/rocketLauncher)
call stack:
the rocketLauncher
(/obj/Weapons/projectile/rocketLauncher): Fire()