The only reason I want to switch away from using an obj is because the animation doesn't always work.
My attacking unit has an attack tick which calls the FlameThrower() function once every second or so.
FlameThrower()
var/obj/FlameThrower/ft = src
if(ft.oFlame == null)
ft.oFlame = new/obj/flame
ft.oFlame.dir = get_dir(ft, m)
ft.oFlame.loc = m.loc
The above block of code works 95% of the time as long as the FlameThrower changes directions between bursts. If the direction remains the same, the animation does not appear.
Any suggestions?
Kaioken, if you read this post, I appreciate your efforts with that previous mess. I just had a ton of issues to work through and your comments helped me do that. I had typed out several long replies trying to explain the whole thing but I knew it was just too convoluted and unfair to post. So thanks for trying.
ts
First, why do you have to make a new variable if you could simply use src?
Second, what is m?
Lastly, when and how are you calling the FlameThrower() proc?