Hello,
Not sure if anyone from Egosoft also reads this page, but I want to request a new MD API for modding.
I started making a Vertical Launching System with existing assets.
I used the Argon medium tracking turret with smart missiles: changed its component movement range to straight up, then gave its macro 360 firing range.
These simple changes made the turret to behave like VLS. Missiles were launched straight up(only tested top mounted, but for any other surface, the shooting angle should be perpendicular to its mounting surface) and the turrets fired missiles for targets over the other side of their mounting surface. Smart missiles turned to track their targets.
So, in short, vanilla assets are already adequate to implement VLS turrets, except for 1 thing, which is the last piece I need.
Those modded turrets did not start shooting until they had a target in Line Of Sight at least once. Once the target hit the LOS of the turrets, they started shooting, even when the target was no longer in LOS.
Tracing down this behaviour, I found that aiscripts/fight.attack.object.[ship type].xml has set_turret_targets for passing the targets to the turrets, but that was the dead end in MD. So, my guess is that the rest is handled by the game codes that are not exposed.
set_turret_targets probably passes targets to a turret manager of some sort, and it issues firing cues based on LOS?
Based on this assumption, if an api 'is_turret_target_los' can be created to pass 'true' condition for LOS, missile turrets can shoot at any valid targets that passed through the attack logic.
[MD API REQUEST] is_turret_target_los? for Vertical Launching System
The place to discuss scripting and game modifications for X4: Foundations.
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
1 post
• Page 1 of 1
-
alphoneex
- Posts: 1
- Joined: Sat, 10. Jan 15, 00:43

[MD API REQUEST] is_turret_target_los? for Vertical Launching System
Post by alphoneex »
1 post
• Page 1 of 1
Return to “X4: Foundations - Scripts and Modding”
Jump to
- English Forums
- ↳ X4: Foundations
- ↳ X4: Foundations - Spoilers
- ↳ X4: Foundations - Technical Support
- ↳ X4: Foundations - Scripts and Modding
- ↳ Construction Community
- ↳ X Wiki Discussion
- ↳ X Rebirth Universe
- ↳ X Rebirth VR Edition
- ↳ X Rebirth - Technical Support
- ↳ X Rebirth - Scripts and Modding
- ↳ X³: Farnham's Legacy
- ↳ X³: Farnham's Legacy - Scripts and Modding
- ↳ X Trilogy Universe
- ↳ X³: Terran Conflict / Albion Prelude / Farnham's Legacy - Technical Support
- ↳ X³: Terran Conflict / Albion Prelude - Scripts and Modding
- ↳ X³: Reunion, X²: The Threat, X-T and X-BTF - Technical Support
- ↳ X³: Reunion - Scripts and Modding
- ↳ X²: The Threat - Scripts and Modding
- ↳ Creative Universe
- ↳ Off Topic English
- Deutschsprachige Foren
- ↳ X4: Foundations
- ↳ X4: Foundations - Spoilers
- ↳ X4: Foundations - Technische Unterstützung
- ↳ X4: Foundations - Scripts und Modding
- ↳ X Rebirth Universum
- ↳ X Rebirth VR Edition
- ↳ X Rebirth - Technische Unterstützung
- ↳ X Rebirth - Scripts und Modding
- ↳ X³: Farnham's Legacy
- ↳ X³: Farnham's Legacy - Scripts und Modding
- ↳ X Trilogie Universum
- ↳ X³: Terran Conflict / Albion Prelude / Farnham's Legacy - Technische Unterstützung
- ↳ X³: Terran Conflict / Albion Prelude - Scripts und Modding
- ↳ X³: Reunion, X²: Die Bedrohung, X-T und X-BTF - Technische Unterstützung
- ↳ X³: Reunion - Scripts und Modding
- ↳ X²: Die Bedrohung - Scripts und Modding
- ↳ Kreative Zone
- ↳ Off Topic Deutsch
- Forum Français
- ↳ X4: Foundations
- ↳ Support et Aide pour X4: Foundations
- ↳ Script et Modding pour X4: Foundations
- ↳ L'Univers X Rebirth
- ↳ Support et Aide pour X Rebirth
- ↳ Script et Modding pour X Rebirth
- ↳ Support et Aide pour la Trilogie X
- ↳ L'Univers de la Trilogie X
- ↳ Script et Modding pour la Trilogie X
- ↳ Off Topic Français
- Forum Italiano
- ↳ X4: Foundations
- ↳ Supporto Tecnico per X4: Foundations
- ↳ Script e Modding per X4: Foundations
- ↳ L'Universo di X Rebirth
- ↳ Script e Modding per X Rebirth
- ↳ Supporto Tecnico per X Rebirth
- ↳ L'Universo della Trilogia di X
- ↳ Script e Modding per la Trilogia di X
- ↳ Supporto Tecnico per la Trilogia di X
- ↳ Off Topic Italiano
- Polskie Fora
- ↳ Polskie / Polish X-Forum
- ↳ Polskie / Polish Off Topic
- 中文 / Chinese X-Forums
- ↳ X4: Foundations
- ↳ X4: Foundations - 技术支持 / Technical Support
- Other Languages
- ↳ Česky / Czech X-Forum
- ↳ Dansk / Danish X-Forum
- ↳ Español / Spanish X-Forum
- ↳ Nederlands / Dutch X-Forum
- ↳ Português / Portuguese X-Forum
- ↳ Русский / Russian X-Forum
- DevNet: General
- ↳ MSCI Reference
- DevNet: X4: Foundations
- DevNet: X Rebirth
- ↳ XR - Technical Troubleshooting
