← Home SEEBIE90 DOCS
The RIM-116 & Phalanx mod is published under the Arma Public License (APL)Example code is free to useSuggestions: Discord to the author

RIM-116 & Phalanx

Building an air defence that runs itself

A launcher and a gun that search, classify, lead, fire and reload on their own – plus a fire-control radar, a warning receiver in every cockpit, countermeasures that actually work and a damage model you can shoot apart piece by piece. These pages explain how such a system is built in Arma Reforger.

In plain wordsTechniques from an automatic air defence mod: a radar, a warning receiver, missiles, countermeasures and a damage model. Each page is one problem and how to solve it.

View in the Workshop →

How to read these pages

Every page is one problem that took a while to get right: what goes wrong with the obvious approach, the technique that works instead, and a short example. The examples are written for this documentation – simplified, with neutral names (MyAD_) and example values. They show the technique, not the source of the mod.

NoteThe RIM-116 & Phalanx mod itself is published under the Arma Public License (APL). The examples here are separate, freshly written teaching code.

The shape of it

Three kinds of entity, and they only know each other through static registries. Separately placed world entities have no runtime relationship – GetChildren() on a neighbour returns null – so every mount and every radar registers itself on initialisation.

Radar: coverage→Mount: search, classify, lead→Network: who shoots what→Missile: guidance + fuze
NoteThe server is the authority for everything that matters. The warning receiver in the cockpit computes its search ping entirely on the client, which is why a whole run-in costs only a handful of network messages. That split is the recurring theme.

Rules that held up

RuleWhy
Measure, do not guessNearly every number started as a guess that turned out wrong. A decoy search radius that was too small made flares useless – the log showed the hit landing within a hundred milliseconds of the decoy being seen.
Inherit rather than copyA second weapon type is a subclass of the first. Target acquisition, factions, supply, damage, lamps and radar coverage then exist once.
Name the thing after what it doesAccuracy is not 0.65, it is LUCKY_LUKE. Picking a level means picking a hit probability, and the name makes that concrete.
Write down the failed attemptA comment that says what was tried and why it failed stops the next person repeating it.
Example code on this page is free to use in your own projects (credit appreciated). The RIM-116 & Phalanx mod is published under the Arma Public License (APL). Suggestions: Discord. Arma Reforger / Enfusion are trademarks of Bohemia Interactive.
Impressum · Privacy Policy