Profile image

Turret

754 sleevesixtys60  3 months ago

How can I get my turret to be used as a anti air gun

  • Log in to leave a comment
  • Profile image

    @P228 will be away for 4 weeks after next Monday

    one month ago
  • Profile image

    @P228 yes, thanks for asking

    one month ago
  • Profile image
    14.5k M1Garand

    Are you still active?

    one month ago
  • Profile image
    299 danixvi

    @sleevesixtys60 might i suggest not going for auto aim? since most auto aim code is highly personalized written by people with expertise. copy and pasting may not yield correct results. instead you could easily make a camera aimed gun.

    +1 2 months ago
  • Profile image
    299 danixvi

    @sleevesixtys60 from what i can see, you have two motors, one for each side and so, you need to just put the auto aim code in both of them. if one of them rotates in the wrong direction i.e goes up when supposed to go down, then just go to the settings of the motor and set invert to whatever the next option is. (yes->no OR no -> yes)

    +1 2 months ago
  • Profile image

    @danixvi https://www.simpleplanes.com/a/lB1FEw/Hydra-flak-turret

    The turret in question

    2 months ago
  • Profile image

    @danixvi minor problem, the turret i have made, has 2 motors for up and down 1 one on both sides

    2 months ago
  • Profile image
    299 danixvi

    @sleevesixtys60 yes there is code for that too that youll have to put in the input section of your rotators.
    https://www.simpleplanes.com/a/7zfIpJ/Flak-37-37mm-AA-AUTO-AIM
    this craft is where i got the fuse from. there is also auto aim in there

    2 months ago
  • Profile image

    @danixvi is it possible to get it to auto target

    2 months ago
  • Profile image
    299 danixvi

    also, pls tell if you want to make the turret controlled by camera because i think thats what you mean with anti air gun.

    2 months ago
  • Profile image
    299 danixvi

    @sleevesixtys60 u need to change a variable in the cannon. select the cannon, open overload, then go to cannon and see if fuseInput variable is there, if it isnt then add it. then for value write this:

    (TargetSelected ? TargetDistance / (3000 - rate(TargetDistance)) : 60)

    thats it

    +1 2 months ago
  • Profile image

    Also how can i get the shells to explode near the target

    3 months ago