Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

Difference between revisions of "sprint"

From Quake Wiki

(Created page with "====Syntax:==== <code>void sprint(entity client, string s)</code> Sends text to a single player. This is used by items to display pickup text. '''client''' must be a player...")
 
Line 2: Line 2:
 
<code>void sprint(entity client, string s)</code>
 
<code>void sprint(entity client, string s)</code>
  
Sends text to a single player.  This is used by items to display pickup text.  '''client''' must be a player.
+
Sends text to a single player.  This is used by items to display pickup text.  '''client''' must be a player. It is, essentially, a MSG_ONE SVC_PRINT. Like [[bprint]] the function can be overloaded to support several string parameters.
 
====Parameters:====
 
====Parameters:====
 
:<code>client</code> - The client to print the string to.
 
:<code>client</code> - The client to print the string to.
Line 8: Line 8:
 
====Returns:====
 
====Returns:====
 
:void
 
:void
 +
====Example====
 +
 +
sprint(self, self.netname);
  
  
 
[[Category:QuakeC Function]]
 
[[Category:QuakeC Function]]

Revision as of 17:47, 2 May 2015

Syntax:

void sprint(entity client, string s)

Sends text to a single player. This is used by items to display pickup text. client must be a player. It is, essentially, a MSG_ONE SVC_PRINT. Like bprint the function can be overloaded to support several string parameters.

Parameters:

client - The client to print the string to.
s - The string to print.

Returns:

void

Example

sprint(self, self.netname);