Home › Lua API › MapAreaPortal

Available out of the box. Usable from Lua in the unmodified game.

MapAreaPortal

5 methods. Symbol/current columns are function addresses (RVA) of the native wrapper.

Signatures are recovered from the game code. ⚠ = partly understood (arguments may be missing or approximate). ? after a name = optional argument. Types: integer/number are Lua numbers, enum-typed arguments show the C++ type in brackets. Two signatures mean the method is registered separately for the UI and the gameplay state and each wrapper was decoded on its own. "same code as" in the Symbol column means the compiler merged identical functions: those methods share one wrapper and cannot be told apart by address.

Method Signature Where Reference Symbol Current
GetEntrancePlotIndex MapAreaPortal:GetEntrancePlotIndex() → number gameplay — 0x1f510 0x1fa00
GetExitCount MapAreaPortal:GetExitCount() → number gameplay — 0x1f590 0x1fa80
GetExitPlotIndex MapAreaPortal:GetExitPlotIndex(uiExitIndex?: number) → number gameplay — 0x1f5f0 0x1fae0
HasEntranceAt MapAreaPortal:HasEntranceAt(x: integer/Plot, y?: integer) → boolean gameplay — 0x1f6a0 0x1fb90
HasExitAt MapAreaPortal:HasExitAt(x: integer/Plot, y?: integer) → boolean gameplay — 0x1f730 0x1fc20