Well copied (and renamed) the RightAttack to the idle animations, gave it an ID and plugged it into the script. The animation does go through it's cycle, but.....
I guess I need a timer to have the fireweapon function go off at the 15th frame of the animation. Right now it's like a ridiculously powerful Gatling gun if you hold down the fire button, firing at a very high rate through the whole range of the animation. Plus I don't have access to any other direction (up, down left, right etc) which can make it tricky to hit actors (especially when the mech is double their height and the laser is going right over the head).
So I think I'll have to move on to the useweapon function. If anyone has a idea how to implement the target parameter (as a ref) that would be great. Then I won't have to deal with any animation issues, the game engine will just use the appropriate animation for hitting the target.
I'm thinking there is probably a script/function that returns the ref of anything under the crosshair. That would work if it could be pluged into variable and that var used as the parameter (don't know if it will work, target parameter not accept a var).
Anyway any ideas/suggestions would be appreciated.