Skip to content

Script built in variables

SDraw edited this page Jun 5, 2023 · 5 revisions

Each LuaScript's Lua state has pre-defined global variables:

  • localPlayer: object for accessing local player. In case if you set it to nil, you can retrieve it again with Player.localPlayer property.
  • this: current game object that LuaScript is attached to.
  • modRelease: integer that holds number of latest release tag