Add new functions to manual's 'Utility Functions' section
This commit is contained in:
parent
80010ee131
commit
c0769a5e80
1 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue