mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-20 07:36:31 -05:00
Add new functions to manual's 'Utility Functions' section
This commit is contained in:
@@ -607,6 +607,19 @@ These are some miscellaneous functions that can be very useful when building cus
|
||||
|
||||
.. js:function:: map.log(message)
|
||||
|
||||
Logs a message to the Porymap log file. This is useful for debugging custom scripts.
|
||||
Logs a message to the Porymap log file with the prefix ``[INFO]``. This is useful for debugging custom scripts.
|
||||
|
||||
:param string message: the message to log
|
||||
|
||||
.. js:function:: map.warn(message)
|
||||
|
||||
Logs a message to the Porymap log file with the prefix ``[WARN]``.
|
||||
|
||||
:param string message: the message to log
|
||||
|
||||
|
||||
.. js:function:: map.error(message)
|
||||
|
||||
Logs a message to the Porymap log file with the prefix ``[ERROR]``.
|
||||
|
||||
:param string message: the message to log
|
||||
|
||||
Reference in New Issue
Block a user