]> git.xonotic.org Git - xonotic/xonotic.wiki.git/commitdiff
Update Programming Tips
authorMartin Taibr <taibr.martin@gmail.com>
Mon, 22 Apr 2019 11:39:58 +0000 (11:39 +0000)
committerMartin Taibr <taibr.martin@gmail.com>
Mon, 22 Apr 2019 11:39:58 +0000 (11:39 +0000)
Programming-Tips.md

index 1b3ac400a829d6484fdeac7121d77978cb263f24..f2bbb41a2b69ced18593d5fc25838055cdd8f143 100644 (file)
@@ -1,6 +1,8 @@
 ### Debug prints
 
-You can show text anywhere on the map using `debug_text_3d(world_coords, message);` from `common/debug.qh`.
+Use `con_notify 4` together with `LOG_INFOF("my_var: %s", my_var);` (`%s` string, `%f` float, `%d` integer, `%v` vector) to see debug output without opening the console. Type `con_notify` and press `<TAB>` to see descriptions and more options (or use `apropos con_notify`).
+
+You can draw text anywhere on the map using `debug_text_3d(world_coords, message);` from `common/debug.qh`.
 
 ### Multiple clients + clean config