FireWeapons: Fire a shot from the cannon; the cannon would reload after every sixth shot.
How to use the setup:
Create four new variables. Set their
Expression
to "1" as placeholder.Set the
Expression
of the first variable to " rate([fourth variable name]
)>0 ? Time :[first variable name]
"
This variable records the time when the clip is empty.Set the
Expression
of the second variable to " Time -[first variable name]
>[time a reload a clip]
|[third variable name]
>[fourth variable name]
|[first variable name]
= 0 "
This variable defines when the cannon have access to ammunition; the first condition is if a new clip is inserted, the second when we're firing from a clip, and the third at the start of the game and logically the clip has already been loaded some unspecified amount of time ago. Either condition would allow the cannon to fire.Set the
Expression
of the third variable to " ammo( "[name of the weapon]
" ) > 0 ?[max ammo of the weapon]
- ammo( "[name of the weapon]
" ) :[third variable name]
"
This variable keeps the ammo count even when the cannon is inactive.Set the
Expression
of the fourth variable to "[third variable name]
-[fourth variable name]
=[ammo per clip]
?[third variable name]
:[fourth variable name]
"
This variable only changes when[ammo per clip]
rounds have been fired and is used to signify when a clip is empty.Install the cannon. Set the
activationGroup
to "[third variable name]
",ammoCount
to "[maximum ammo of the weapon]
", andfiringDelay
to "[time needed for the weapon to cycle]
".
If the cannon(s) require other condition(s) to fire then set theactivationGroup
to "[third variable name]
&[other conditons]
" .
Specifications
Spotlights
- 50CalChicken 3 months ago
- DISHWASHER2005 3 months ago
- Monarchii 1.6 years ago
- Unwanted one month ago
- HudDistance 6 months ago
- DynamicHorizon 7 months ago
General Characteristics
- Predecessor Ammo counter & Autoloader
- Created On Android
- Wingspan 8.2ft (2.5m)
- Length 20.7ft (6.3m)
- Height 3.7ft (1.1m)
- Empty Weight 1,264lbs (573kg)
- Loaded Weight 1,264lbs (573kg)
Performance
- Wing Loading N/A
- Wing Area 0.0ft2 (0.0m2)
- Drag Points 670
Parts
- Number of Parts 9
- Control Surfaces 0
- Performance Cost 48
@ThomasRoderick British gun names try not to be simultaneously the coolest sounding but with the weirdest actual acronym challenge (level: impossible)
@SchmooveBrain
Ah, nvm; on that note, how's the setup?
Also, for those weird cannons on Warrior IFVs, you're probably going to be interested in this as well.
@ThomasRoderick sorry, I was talking to BOS in one of my unlisteds and he mentioned an IFV cannon and I wanted to see what he meant
Sorry, that prob seemed incredibly outta nowhere lol
@ThomasRoderick she asked about it
@SchmooveBrain @BOSSentinel
Errrrm.... anybody please explain to me what's going on again?
@BOSSentinel ouhhh lmao
@Schmoovebrain this chonker of FT
Idle musings:
Older battleships oftentimes have multiple guns sharing the same elevation mechanism, so... perhaps this setup can be used to represent the individual turrets on those ships?
@BlackGearCompany
Thanks! Feel free to use the setup in your future projects!
@ThomasRoderick thank you!
@BOSinitiate
1&3: Description updated to include construction guide.
2: Yes of course! All of my codes are free to use as long as you give credit somewhere in your build.
I have 3 questions.
1. How would I put this onto my build?
2.May I use this on my main account? [@BOSSentinel]
3. Is there any funky trees I would need to use.?
@VTPADELTA
Sorry for my late reply. Yup it's a lot simpler compared to the autoloader, and also yes, feel free to incorporate it into your next build as long as you give credit.
(Also make sure to have at least 0.05s delay between your cannons for the counter to work properly)
.
..
...
.... And thanks for the upvotes either way.
Its just funny how your script still functions, despite the simplicity behind it.
Gonna incorporate that into my build, if you don't mind :3
@ThomasRoderick well then here's a spotlight for your politeness
@50CalChicken Thanks!
@ThomasRoderick idk
@MosquitowithaMachineGun
Why sudden spotlight now... thx anyways.
@Bogey
Welp, feel free to use them in your next builds! Granted, it's still in the proof-of-concept phase, so....
.
..
... I guess the companion piece can be used to set up individual gun turrets?
Nice build
@Bogey Thanks!
2000 years later
@ThomasRoderick Yessir
@MajorFreischmidt Thanks!
@ThomasRoderick thanks
Also, it's ok, my discord account and SP account have entirely different names so it makes sense, I'm thinking of changing my discord account to mosquitowithagun but idk.