[SCRIPT] [TC/AP] Periodically reset relations (The Friendly Fire problem)

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Post Reply
OwnlyMe
Posts: 63
Joined: Tue, 9. Feb 16, 20:30
x4

[SCRIPT] [TC/AP] Periodically reset relations (The Friendly Fire problem)

Post by OwnlyMe » Wed, 5. Jul 17, 23:45

Hi,
I had troubles with ships turning hostile because of accidental friendly fire so i wrote a script for periodically resetting the relations.

This script checks for enemy ships and stations of allied races in the player's sector every 5 seconds and sets them to friendly.
It only checks for ships with race logic enabled, so it probably won't affect missions.
The script runs as a station command.

https://www.dropbox.com/s/4146jdawf5a7n ... .zip?raw=1

V1.1: added station support


_________________
www.patreon.com/OwnlyMods

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”