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

Difference between revisions of "coredump"

From Quake Wiki

(Created page with "Print all entities.")
 
 
Line 1: Line 1:
Print all entities.
+
''void'' '''coredump'''()
 +
 
 +
== Usage ==
 +
Prints all of the entities in the map to the console. Mainly used for debugging.
 +
 
 +
== Example ==
 +
// If a core entity is in an invalid state, dump everything and abort the VM
 +
if (!importantEntity)
 +
{
 +
    coredump();
 +
    error("Important entity was accidentally removed\n");
 +
}

Latest revision as of 18:38, 31 July 2023

void coredump()

Usage[edit]

Prints all of the entities in the map to the console. Mainly used for debugging.

Example[edit]

// If a core entity is in an invalid state, dump everything and abort the VM
if (!importantEntity)
{
    coredump();
    error("Important entity was accidentally removed\n");
}