Author Topic: Allow -1 for display time in center and bottom print  (Read 1234 times)

I need the bottom/center print to stay on screen (thus time -1) until I disable it with an empty center/bottom print that has a time of 0.

It might just be me being tired, but I'm pretty sure that using a value of 0 acts as an infinite message. You could use message clearing events to get rid of it afterwards.

Nope, I just tested it out and it just resets it back to 1.

I know that if you use the centerprint function without inputting the variable for time then it will last forever.


Code: [Select]
registerOutputEvent("GameConnection", infiniteCenterPrint, "STRING 150 200",0);

function Gameconnection::infiniteCenterPrint(%this, %string)
{
%this.centerprint(%string);
}

And then bottomprint is just as easy.

Code: [Select]
registerOutputEvent("GameConnection", infiniteBottomPrint, "STRING 150 200",0);

function Gameconnection::infiniteBottomPrint(%this, %string)
{
%this.Bottomprint(%string);
}



What about a relay?


That would use memory and/or would cause lag or delay.

You could use message clearing events to get rid of it afterwards.
What are these?


I know that if you use the centerprint function without inputting the variable for time then it will last forever.
Code: [Select]
registerOutputEvent("GameConnection", infiniteCenterPrint, "STRING 150 200",0);
function Gameconnection::infiniteCenterPrint(%this, %string)
{
%this.centerprint(%string);
}
And then bottomprint is just as easy.
Code: [Select]
registerOutputEvent("GameConnection", infiniteBottomPrint, "STRING 150 200",0);
function Gameconnection::infiniteBottomPrint(%this, %string)
{
%this.Bottomprint(%string);
}
The centerprint works but the bottomprint doesn't. I also need the checkbox to remove the bar on the bottomprint.