H3lp Yours3lfDocs
api

LogMessage

Print diagnostic messages from local, player, global, and load scripts.

require 'scripts.s3.logmessage' → LogMessage; LogMessage(...)

Use LogMessage when the same debug helper needs to work from more than one OpenMW script context. It picks the available output path for you.

local LogMessage = require 'scripts.s3.logmessage'

LogMessage('Loaded record', recordId, 'count', count)
ContextDelivery
playerPrints to the player's console with the success color.
localSends S3LFDisplay to nearby players.
globalSends S3LFDisplay to every current player.
loadUses ordinary print, which is available during load processing.

There is no H3 prefix. Each call allocates an argument table and joined string, returns nothing, and stringifies arguments with tostring.

S3lf exposes the same helper as lowercase s3lf.consoleLog(...); use this module when you do not need the S3lf facade.

Use LogMessage for diagnostics, not gameplay events or persistence. Local and global delivery is event-based and may not be displayed when the call returns.