Automatic Firing Upgrade For Turrets
From GMod Wiki
This page has been nominated for deletion. Deletion is due within approximately 30 days from nomination, unless the deletion has been disputed on the talk page. See more pages nominated for deletion here. Reason for deletion: Not what Garry wants the wiki to be used for Last Edit was made on 11/16/2011 |
Automatic Firing Upgrade For Turrets
To do this you first need to make a turret, use the guide located here Automatic Turret.
Okay, im assuming you have made the turret listed above and understand how it works.
You will need: 2 values, 2 less than comparison gates, 2 outputs and a distance sensor.
- Attach the distance sensor on the front face of the turret (the side that points towards you when it aims), Place it in the center.
- Wire it to the target finder that is already on your turret.
- Place the two less than comparison gates anywhere on the turret, I personally put them on the reverse side of the firing face because there was enough room there.
- Add the two output beside the comparison gates, make sure that the keypad button they are wired to is also that of your turrets.
- Place the two vlaues, make one of them whatever you want. (I use 2000, its a nice range). Then make the other just 1 more, (so for me 2001).
- wire them together like this:
Gate 1 input A -> Distance sensor
Gate 1 input B -> value 2000
Output 1 -> Gate 1
Gate 2 input A -> value 2001
Gate 2 input B -> Distance sensor
Output 2 -> Gate 2
- You might want to separate the two sets of componets into two rows maybe, it makes it easier to determine what is connecting to what.
- Now that you have these working your turret should automaticly fire when anybody gets within 2000 units of it. Then they will stop firing when sombody leaves this area. Have fun with your auto tracking, auto firing turret!
- If you are having trouble with this, like the turrets turn off when you go into range and on when you go out of range, just hit the turrets numpad key so that they are flipped to the right setting.
Qwerty091 04:55, 5 February 2007 (GMT Standard Time)