I'm trying to get a custom character to work with the a_soldier.lua script, and I've hit a stumbling block. Most of the time it will work correctly, but every now and then it fires once or twice and then stands idle. Also, if the player is killed and respawns, it will stand idle and no longer attack. I'm using the Rocket Man fpe as a base. I've narrowed it down to the mesh - if I change the rocket man model path in the rocket man FPE to the custom mesh, I get the issue, and if I use the rocket man model in the custom FPE, then it works fine. I thought it might be the scale (the custom model is larger than the stock characters), but after I scaled it down I still get the issue.
This is driving me nuts, as I can't figure out why the mesh would cause a character to stop attacking after the player dies.
Edit : looks as though it's the firespot bone that's causing the problems. Lots of trial and error to get it working, but at least it is working.
i5 2500k 3GB GTX1060 8GB RAM Windows 10