warning_info_debug - ryzom/ryzomcore GitHub Wiki


title: Warning, Info, and Debug description: published: true date: 2023-03-14T04:23:01.802Z tags: editor: markdown dateCreated: 2023-03-13T02:15:25.650Z

warning, info, and debug

The warning, info, and debug native AI script functions are used to output messages to the console during AI script execution.

Syntax

()warning(string: s) // warning_s_
()info(string: s) // info_s_
()debug(string: s) // debug_s_
()warning(value: f) // warning_f_
()info(value: f) // info_f_
()debug(value: f) // debug_f_

Arguments

  • string (string): A string containing the message to be output.
  • value (float): A float value to be output.

Example

()warning("This is a warning message");
()info("This is an informative message");
()debug("This is a debug message");
()warning(3.14159);
()info(42.0);
()debug(2.71828);

This example code shows how to call the warning, info, and debug functions with either a string or float value.

⚠️ **GitHub.com Fallback** ⚠️