If i mod a turret to a ship why wont it work

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

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

balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

If i mod a turret to a ship why wont it work

Post by balogt »

So i placed it on in the ship file. The game sees it and i can buy and its physically there. But it doesnt work. Its a med turret on a courier. Is there another file i need to update to alliw courier to use turrets as it doesnt by default have one
7ate9tin11s
Posts: 813
Joined: Fri, 11. Nov 05, 23:18
x4

Re: If i mod a turret to a ship why wont it work

Post by 7ate9tin11s »

I think this may be because small ships only use the combat AI from fight.attack.object.fighter and do not run code from fight.attack.object.medium which also controls turrets.
balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

Re: If i mod a turret to a ship why wont it work

Post by balogt »

thanks man that ws the info I was looking for but havnt modded x series for a few years. your a life saver.

Return to “X4: Foundations - Scripts and Modding”