SetLampSignal
From NexusWiki
SetLampSignal(ship, "signal");
When this command is issued, all of the ship’s lamps will signal Morse-like string. The string repeats endlessly. The string is given by the signal, in which all the characters are understood in the following way: 1 – short signal, 2 – long signal, everything else – pause
So, for example, if we had a ship that we've named M.Solar and we wanted it send out an SOS message using it's blinking lamps, we'd type something like this into our script...
SetLampSignal(M.Solar, "1112221110" );