SendTrigger


Sends a trigger to the given destinations. Any cog can receive triggers with the trigger message, but if you want a cog on another computer to receive the trigger, you'll need to use the right destination. Syntax:

SendTrigger(dest, ID, param0, param1, param2, param3);

dest: The destination controls to which computers in the game the trigger will be sent. Read the table below for the destination values.

ID: The ID of a trigger becomes the sourceref of the trigger message.

paramX: These four parameters will become the four parameters of the trigger message.


Trigger Destinations
DestinationPlayer that receives the message:
0, 1, 2, etc.If this is MP and there's a player with this thing number, the message is sent to him. Otherwise, no one receives it.
-1, -2, -3, etc Everyone.