Secondary Signals

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

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

Post Reply
User avatar
Sith Lord
Posts: 6365
Joined: Wed, 6. Nov 02, 21:31

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?

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

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”