Project

General

Profile

Actions

Signal » History » Revision 2

« Previous | Revision 2/3 (diff) | Next »
Per Amundsen, 06/27/2016 05:03 PM


Added in 1.9.0

/signal [-n] <name> [parameters]

Trigger on SIGNAL events in all scripts that listen for signals.

Switches

-n - Makes the script trigger immediately.

Parameters

<name> - Signal to trigger.
[parameters] - Parameters to send to the signal.

Example

;Setup a listening SIGNAL event.
on *:SIGNAL:testsignal:echo -a Signal was called with parameters: $1-

;Call the testsignal with parameters Hello world!
/signal testsignal Hello world!

Updated by Per Amundsen over 8 years ago · 2 revisions

Also available in: PDF HTML TXT