How would you do a preset event where it displays text on activeate?
function yourBrickData::onPlant(%data, %object)
{
//Event #1
%enable = 1;
%msDelay = 0;
%input = "OnActivate";
%controlling = "Client";
%output = "CenterPrint";
%msg = "<color:FFFFFF><font:impact:30>This is a center print message";
%time = 5;
%object.addEvent(%enable, %msDelay, %input, %controlling, %output, %msg, %time);
//Event #2
%output = "ChatMessage";
%msg = "<color:FFFFFF><font:impact:30>This is a chat message";
%object.addEvent(%enable, %msDelay, %input, %controlling, %output, %msg);
//Event #3
%output = "BottomPrint";
%msg = "<color:FFFFFF>This is a bottom print message";
%object.addEvent(%enable, %msDelay, %input, %controlling, %output, %msg, %time);
}
The fifth argument you pass to fxDTSBrick::addEvent is the output event. The sixth and further on are extra parameters.
In this case, you want your output event to be either a bottom print, chat message, or center print, so simply put the fifth argument as "CenterPrint", "BottomPrint", or "ChatMessage". You also want to pass the sixth argument as the text to display, so set it to what you want and pass it. For center print and bottom print, you should also specify a time, in seconds, of how long the print should last, so pass a seventh argument with the second amount. In this example, it is five.
I also demonstrated presetting multiple events, so to add more just change the values you need to change and then just call another ::addEvent.