Forced friendly fire

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

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

Caldari Navy
Posts: 73
Joined: Tue, 18. Jul 23, 18:43

Forced friendly fire

Post by Caldari Navy » Tue, 18. Jul 23, 18:50

Hello everyone , is there some script or mod or something to force frieny ai shoot at own ships on purpose.... i want make logistic ship whith shield or armor repairer but whith out ai able to shoot at friendly units its pointless.
Ai can use repair guns mod but they thing think its normal weapon , any thoughts on this ?

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13308
Joined: Sun, 15. Feb 04, 20:12
x4

Re: Forced friendly fire

Post by euclid » Wed, 19. Jul 23, 17:52

Hi Caldari Navy :-)

Whatever weapon you are modding for hull/shield repair it must have a bullet defined. I have not tested it myself but think that <weapon system="weapon_repair" /> in the bullet definition should do the trick. Please let us know if that works ;-)

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Caldari Navy
Posts: 73
Joined: Tue, 18. Jul 23, 18:43

Re: Forced friendly fire

Post by Caldari Navy » Wed, 19. Jul 23, 19:09

Thank you for answer. I probably explained wrong way what im trying to achieve..
So i basicaly asking how to make for example my own ai in my corporation shoot at me or shoot another friendly ai .. for example whith repair guns* or other argon ai shoot other argon ai

Now if i order ai atack ( repair) friendly ship , target ship understood hits as agresive atack even though guns are repair lasers

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13308
Joined: Sun, 15. Feb 04, 20:12
x4

Re: Forced friendly fire

Post by euclid » Wed, 19. Jul 23, 19:54

You may want to check out TheAssiler's Mobile Repair Service to get some hints on how to code your own mod.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Caldari Navy
Posts: 73
Joined: Tue, 18. Jul 23, 18:43

Re: Forced friendly fire

Post by Caldari Navy » Wed, 19. Jul 23, 21:00

Oh thats exactly i wanted thanks a lot thats spot on .

Return to “X4: Foundations - Scripts and Modding”