QuakeServer.Builtins.Print (quake_server v0.1.0)

Copy Markdown View Source

The print builtins as FTE runs them: bprint (23) to every player, sprint (24) to one, and centerprint (73) in the middle of one player's screen, their text joined from every argument after the leading ones. A QuakeWorld program (crc 54730) gives bprint and sprint a print level before the text; otherwise the level is 2 (PRINT_HIGH). Prints reach a player's reliable messages (QuakeServer.Outbox) and, as {:print, :notify | :center, text}, the server's events. A sprint or centerprint to an entity that is not a player prints that it was tried.

server = QuakeServer.Builtins.Print.call(server, 24, 3)

Summary

Functions

Run print builtin number called with argc arguments.

Functions

call(server, int, argc)

@spec call(QuakeServer.Server.t(), 23 | 24 | 73, non_neg_integer()) ::
  QuakeServer.Server.t()

Run print builtin number called with argc arguments.