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

vtos

From Quake Wiki

Revision as of 00:50, 27 March 2013 by Necros (talk | contribs) (Created page with "====Syntax:==== <code>string vtos(vector vec)</code> Converts a vector into a string to allow it to be printed to the console or displayed in a centerprint. ====Parameters:==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:

string vtos(vector vec)

Converts a vector into a string to allow it to be printed to the console or displayed in a centerprint.

Parameters:

vec - The vector value to convert

Returns:

Returns a string representation of the vector in the form x y z.

Other Details:

The string value returned by this function always points to the same area in memory. Running this function multiple times in the same frame will cause all strings to be set to the last vector converted.