can i set a timed messages

Topic created · 2 Posts · 25 Views
  • is there a code to set a message on a timer so like after the welcome massage it says do this after that is do it says do that

  • You can thread a function containing a for(;;) loop and a wait statement.

    timedMessage() {
    	level endon("game_ended");
    	for(;;) {
    		allClientsPrint("This is a message printed to all players.");
    		wait 45;

    Call the function like level thread timedMessage(); in init().

Log in to reply