ID:160886
 
Can someone just do this put a code in on how to make a weapon work like a pistol or a AR or a rocket? You do the code like this icon = 'the icon' obj/weapon/the gun?
IDWMno wrote:
Can someone just do this put a code in on how to make a weapon work like a pistol or a AR or a rocket?

Yes, I can just do this put a code for you, no problem. Here:
obj/pistol
name = "the gun"
icon = 'the icon.dmi'
verb/Shoot()
set src in usr
the_code(usr)
proc/the_code(the_player)
viewers(the_player) << "[the_player] fires [src]!"


On a more serious note - but this forum is not for code requests. If that is what you were after, then this is not the place for it, sorry.
In response to Kaioken
Here I'll give you to choices

1)Go to the DM Guide and learn something

2)Don't do it and learn nothing