Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. can i set a timed messages

can i set a timed messages

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
2 Posts 2 Posters 56 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Duui YTundefined Offline
    Duui YTundefined Offline
    Duui YT
    wrote on last edited by Duui YT
    #1

    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

    1 Reply Last reply
    0
    • TheHiddenHourundefined Offline
      TheHiddenHourundefined Offline
      TheHiddenHour Contributor
      wrote on last edited by
      #2

      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().

      1 Reply Last reply
      0

      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Donate