How to print/show a custom Error

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By usurun

How do you make the engine show an error if some condition happens?

Do you mean in the console output?

Eric Ellingson | 2019-10-10 06:00

I think you can simulate an error, the game will stop running.

usurun | 2019-10-10 13:21

Like this https://youtu.be/ML-hiNytIqE?t=490

usurun | 2019-10-10 13:25

:bust_in_silhouette: Reply From: luislodosm

To display errors in the debug panel:

push_error("string")
push_warning("string")

To display errors in the output panel:

printerr("string")

Additionally to break operation assert(condition)

Wakatta | 2021-05-16 11:31