Feeling disheartened as I was hoping to power through enemies pretty quickly but I guess I still dont understand enough about the program yet. My mech enemy isn't working at all. Nothing, animations, abilities.
The mech has 2 parts. The legs/body which are animated, and the top which I want to rotate to face the player whenever its in combat.
1. I cant get the animations to work.
I made an animation set with the walk animation.
I set it to legacy.
Auto animation is on, it has that set selected.
Animation component has the animation in it.
As you can see in the above video, the animation itself works.
Is there any reason why he just glides around once i set up automove? It's using a navmesh move AI.
2. I cant get the top to rotate independent of the bottom.
Right now its childed to the base of the skeleton of the legs.
I tried "Rotate to target" On child, but it spazzes out and rotates in random directions.
even "Change rotation" doest work. even if I set it to the local XYZ (so it wouldnt rotate at all) it still spazzes out.
My work around was to have fixed rotations triggered by abilities, but that totally defeats the purpose, as I want it to be essentially a turret attached to a pair of legs.
I have an idea of making them 2 different enemies and mounting one on top of the other...?
3. The machine gun ability is used at totally random moments.
I have it set with a minimum range and a maximum range, with a 0.2 second delay...
I feel like it should be spamming the ability in between those 2 ranges, but it only uses 1 once at a very close range.
Totally unsure why or whats going on here.
4. Weird movement issues
The move AI always moves to the exact spot of my player, and even pushes my player on top of it.
With a character controller it doesnt even have collision. I added a box collider and my player just walks on top of it... its very weird. The test enemies dont have this problem.
I added a box radius to the mech and a stopping distance but it still always move to the exact middle of where the player is.
It has a rigid body and using navmesh move AI.
Frustrated that I cant figure this out on my own. :(
Think ill leave the mech alone for a bit and move on if I cant get him working by next week.
Thanks for all the help so far!