ID:160917
 
Can someone code a code to make a HandGun work, Assaultrifle work, Trapdoor work, Nuclearbomb work, bomb to work, and a rocket launcher to work? I need the code to make them work, i would like the bomb to be small.
Sure thing, pal.

obj/weapons
verb/Fire()
set src in view(0)
world << "KAPLOWY!"
HandGun
assaulrifle
Nuclearbomb
Fire()
world << "KABOOM! BIFF! WHAM! BIZAP!"
In response to Glarfugus
Thanks but it doesn't work out to well alls i have is the icons and this code with the other weapons along with your code

obj/weapons/handgun
icon = 'handgun.dmi'
In response to IDWMno
He was being sardonic. You need to learn that these forums are to help people, not to give handouts for code.
In response to Popisfizzy
Well in the tutorials for the coding i read some of them and it don't tell me this stuff, i know the basics.

For the rocket would it be something like this?

obj/rocket
mob/verb/fire ()
world >> "[usr] Fires a rocket!"
src del oview (5)<dm>
In response to IDWMno
If you knew the basics, you would know that that code is unreconciably bad. Go read the DM Guide.
In response to Popisfizzy
Popisfizzy wrote:
unreconciably
What? 'conceivably', perhaps...?