AiScripts and weaponmodes

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

worstl
Posts: 367
Joined: Wed, 15. Oct 08, 18:02
x4

AiScripts and weaponmodes

Post by worstl »

Hi guys,
I'm currently trying to create a script which does automatically set the turret modes for my ships. I used the outdated https://www.nexusmods.com/x4foundations/mods/1158 as a reference.
Does anyone know how the "attack missles first" command is called internally? So far I found out that there is
weaponmode.attackcapital
weaponmode.attackfighters
weaponmode.missiledefence

I'd like to automatically set all L/XL Turrets to "attack capital ships first" and all M/S turrets to "attack missles first"

Return to “X4: Foundations - Scripts and Modding”