Hey everyone I'm having some trouble with getting my unit to fire.
Going into FPS mode shows that it is stuck aiming and clicking lmb to fire doesnt work.
I figured I was trash at scripting and failed at emulating the tankmod script that I found in one of the tutorials.
That might still be the case but everything looks ok to me in that area.
My second thought is that I created my model is set up incorrectly since when I go in FPS mode the camera is very close to the ground not at the head of my unit.
Any help would would be greatly appreciated.
You can find the code at https://github.com/Schweig/game-off-2016
Unit Stuck Aiming can't fire in FPS mode
Moderator: Moderators
Re: Unit Stuck Aiming can't fire in FPS mode
At a glance script looks ok. My first thought is to check that the origins of the gun piece (returned in AimFromWeapon) are above the ground, as I had a similar problem not long ago. No error in infolog re: weapon def?