ID:165900
 
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
Try:
new/obj/FireBall(get_step(usr.loc,usr.dir))//get_step returns the location of 1 step from the starting in the direction stated


If that doesn't work, can you show us how the projectile() proc works?

- GhostAnime
In response to GhostAnime
I combined our two, and this works
usr.projectile(new/obj/FireBall(get_step(usr.loc,usr.dir)),usr.dir,7)