SendTrigger(dest, ID, param0, param1, param2, param3);
dest: The destination controls which computers in the game the trigger will be sent to. 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.
You can't send triggers with a player thing destination in SP until an MP game has been played (without exiting JK inbetween). Something done for multiplayer levels initializes JK's player array, and until that happens you can't send a trigger to a player in SP. This is something you need to keep in mind for writing cogs to work in both MP and SP.
Trigger Destinations | |||
---|---|---|---|
Destination | Player 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. |