Secondary Signals

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
User avatar
LV
Sith Lord
Posts: 6362
Joined: Wed, 6. Nov 02, 21:31
x3tc

Secondary Signals

Post by LV » Sun, 4. Jan 09, 20:19

Can't get em to work when testing with sig attacked & killed

also what's the 'name' variable at the end of the command after the prio key?

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 20601
Joined: Mon, 15. Nov 04, 00:26
x4

Post by Cycrow » Sun, 4. Jan 09, 21:03

secondary signals work the same as normal ones, the difference is that you can assign multiple secondary signals to the same signal, instead of just one.


the name is a unique identifier, and is used to allow you to remove them later.

so if you add 3 secondary signals to SIGNAL_ATTACKED, then all 3 will be stored and run on the ship before the primary one is run.

signal scripts also must return immediatly, otherwise it will prevent other scripts from running.

Post Reply

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