Unit Stuck Aiming can't fire in FPS mode

Unit Stuck Aiming can't fire in FPS mode

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
Schweig
Posts: 1
Joined: 11 Nov 2016, 23:44

Unit Stuck Aiming can't fire in FPS mode

Post by Schweig »

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
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Unit Stuck Aiming can't fire in FPS mode

Post by FLOZi »

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?
Post Reply

Return to “Game Development”