docs(roadmap): add idea for auto-TRZ creation on object spawn - #134
Conversation
Requested by the user: a config setting that automates createTroopZoneAtObject (FEAT-TROOP-ZONE-SCRIPTED-API, PR #129) so a TRZ_ is created automatically when a matching object (FOB, FARP, etc.) spawns, instead of requiring an explicit scripted call per object.
Reviewer's GuideAdds a non-formalized roadmap idea for configuration-driven automatic TRZ_ creation when matching FOBs, FARPs, or other objects appear, while recording the trigger, selection, naming, and menu-refresh questions that must be resolved before turning it into a PRD. Sequence diagram for automatic TRZ creation on object spawnsequenceDiagram
participant Object as SpawnedObject
participant CTLD as CTLDZoneManager
participant TRZ as TRZ_
participant F10 as F10Menu
Object->>CTLD: [matching object appears]
CTLD->>CTLD: createTroopZoneAtObject(objectName, trzName)
CTLD->>TRZ: Create zone from object
CTLD->>F10: [refresh behavior unresolved]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="dev/roadmap.md" line_range="228" />
<code_context>
+
+## TRZ_ automatique — création liée au spawn d'un objet (FOB, FARP, etc.)
+
+Demandé le 2026-08-26. `CTLDZoneManager:createTroopZoneAtObject(objectName, trzName)`
+(`FEAT-TROOP-ZONE-SCRIPTED-API`, PR #129) permet déjà de créer une `TRZ_` sur n'importe quel objet
+DCS nommé après coup, mais uniquement via un appel scripté explicite — un MM ou une intégration
+externe (ex. VMCT) doit le déclencher lui-même, objet par objet.
</code_context>
<issue_to_address>
**nitpick:** La formulation affirme que `createTroopZoneAtObject` fonctionne sur n'importe quel objet DCS nommé, alors que l'implémentation ne résout que les zones de trigger, unités, statiques, groupes et airbases/FARP. Un futur utilisateur qui cible un autre type d'objet obtient `false` et aucune TRZ.
**Triggers:** Lorsqu'un mission maker cible un objet DCS hors des cinq catégories actuellement prises en charge.
**Suggested fix:** Remplacer « n'importe quel objet DCS nommé » par la liste explicite des types supportés, ou préciser que l'API ne couvre que les objets résolus par son helper actuel.
```suggestion
(`FEAT-TROOP-ZONE-SCRIPTED-API`, PR #129) permet déjà de créer une `TRZ_` sur un objet DCS nommé de type zone de trigger, unité, statique, groupe ou airbase/FARP
```
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| ## TRZ_ automatique — création liée au spawn d'un objet (FOB, FARP, etc.) | ||
|
|
||
| Demandé le 2026-08-26. `CTLDZoneManager:createTroopZoneAtObject(objectName, trzName)` | ||
| (`FEAT-TROOP-ZONE-SCRIPTED-API`, PR #129) permet déjà de créer une `TRZ_` sur n'importe quel objet |
There was a problem hiding this comment.
nitpick: La formulation affirme que createTroopZoneAtObject fonctionne sur n'importe quel objet DCS nommé, alors que l'implémentation ne résout que les zones de trigger, unités, statiques, groupes et airbases/FARP. Un futur utilisateur qui cible un autre type d'objet obtient false et aucune TRZ.
Triggers: Lorsqu'un mission maker cible un objet DCS hors des cinq catégories actuellement prises en charge.
Suggested fix: Remplacer « n'importe quel objet DCS nommé » par la liste explicite des types supportés, ou préciser que l'API ne couvre que les objets résolus par son helper actuel.
| (`FEAT-TROOP-ZONE-SCRIPTED-API`, PR #129) permet déjà de créer une `TRZ_` sur n'importe quel objet | |
| (`FEAT-TROOP-ZONE-SCRIPTED-API`, PR #129) permet déjà de créer une `TRZ_` sur un objet DCS nommé de type zone de trigger, unité, statique, groupe ou airbase/FARP |
Summary
createTroopZoneAtObject(FEAT-TROOP-ZONE-SCRIPTED-API, PR feat(zones): scripted API to add a pickup TRZ on any named object #129) so aTRZ_is created automatically when a matching object (FOB, FARP, etc.) spawns, instead of an explicit scripted call per object.Test plan
Summary by Sourcery
Document a future configuration-driven option to create troop zones automatically for matching spawned objects.
Enhancements:
TRZ_zones when matching mission objects spawn, building on the existing scripted troop-zone API.Documentation: