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

vtos

From Quake Wiki

string vtos(vector value)

Usage[edit]

Converts a vector to a string. Mainly used for printing messages.

Warning: This does not return a unique string but a string shared across all instances of vtos(). Calling it again will change all currently stored references to the latest one. Storing the result has little value and it should only be called once per print function call.

Parameters[edit]

  • value
The vector to turn into a string.

Return[edit]

The passed vector as a string.

Example[edit]

// Print the position of an entity while debugging
dprint("Entity position: ");
dprint(vtos(self.origin));
dprint("\n");