Author Topic: Turret only working half-ish  (Read 762 times)

So yeah bad title but it's a really weird issue. I'm making a turret to mount on a vehicle, which is working fine. However, the look animation (rising and lowering of the barrel) only works when the turret is spawned on it's own. If the turret is spawned by spawning it's parent vehicle, it doesn't do the animation. However, the turret does fire a projetile when clicking if it's on the vehicle, but does not shoot when it's spawned by itself.

Also note that the projectile is shot in the correct angle (where the barrel would logically be if the look animation was working), so it's just a visual issue.

Any help would be appreciated. I can pm the code if someone asks.

is the turret in the drivers seat? vehicles can set look angle limits but only for the driver, ex jeep driver cant face straight down and up but can still fire down/up.

is the turret in the drivers seat? vehicles can set look angle limits but only for the driver, ex jeep driver cant face straight down and up but can still fire down/up.
No it's on mount2, and you actually have to press next seat twice to mount it after entering the vehicle so it's actually on mount2. THey player controlling it does pitch up and down when looking too.

You were right, this was the issue. The lookup and lookdown limit was set to 0.5 and 0.5 for all seats. While the player doesn't pitch up or down in the driver or passenger seat, the player did pitch up and down in the turret seat. The turret did not move along wth the player, but it does now I set the limit to 0.9 and 0.1 resectively. Thanks.
« Last Edit: July 05, 2017, 05:10:49 AM by TheArmyGuy »