obj/hud/Fire
icon='Fire (HUD Button).dmi'
screen_loc="7,0"
layer=7
Click()
/* if(usr.it) Irrevelant to the question
owner2=1
else
owner2=0*/
flick("Shoot",usr)//flick the icon state shoot so that it "plays" there shooting motion
usr.projectile(new/obj/FireBall(usr.loc),usr.dir,7)//shoots the projectile
sleep(8)//prevents spamming of this
There is the entire code of this if you need it but this...
usr.projectile(new/obj/FireBall(usr.loc),usr.dir,7)
...is the problem. I need this to make the projectile to appear in front of the player and move forward
If that doesn't work, can you show us how the projectile() proc works?
- GhostAnime