ReferenceMiscellaneous

getprocessidentifier

Returns the current game worker’s process identifier as seen by that process.

Syntax

getprocessidentifier() -> number

Also available as

get_process_identifier

Returns

TypeDescription
numberProcess ID visible to the worker.

Description

The launcher and game workers are separate processes. Namespace isolation can make this number differ from the PID shown by host tools; it is not a permanent account or device identifier.

Example

print(getprocessidentifier())

These are Game executor contracts. Check build requirements and session lifetimes before using them.