Lua functions

GetCanEvac

Registered in this checkout as EQ2Emu_lua_GetCanEvac; implementation found at WorldServer/Lua/LuaFunctions.cpp:12972.

Historical signature: GetCanEvac(spawn)

Parameter and behavior details in the historical explanation are under review against the current implementation.

Function: GetCanEvac(spawn)

Description: Gets if the Spawn(Player) can evac in the current zone.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: Returns UINT32 1 if you can evac, otherwise 0.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.

if(GetCanEvac(Caster) == 1)

Evidence: server/Spells/Scout/Escape.lua:12; binding EQ2Emu_lua_GetCanEvac.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.