Code: Select all
function remoteCP(%manager, %msg, %timeout)
{
if(%manager == 2048)
{
$centerPrintId++;
if(%timeout)
schedule("clearCenterPrint(" @ $centerPrintId @ ");", %timeout);
// Client::centerPrint(%msg, 0);
Client::centerPrint(%msg, 1);
Event::Trigger(eventCenterPrint, %msg, %timeout);
}
}
function remoteTP(%manager, %msg, %timeout)
{
if(%manager == 2048)
{
$centerPrintId++;
if(%timeout)
schedule("clearCenterPrint(" @ $centerPrintId @ ");", %timeout);
Client::centerPrint(%msg, 2);
Event::Trigger(eventTopPrint, %msg, %timeout);
}
}
function remoteBP(%manager, %msg, %timeout) {
if (%manager == 2048) {
$centerPrintId++;
if (%timeout)
schedule("clearCenterPrint(" @ $centerPrintId @ ");", %timeout);
Client::centerPrint(%msg, 1);
Event::Trigger(eventBottomPrint, %msg, %timeout);
}
}