Lua functions

IsPlayer

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

Historical signature: IsPlayer(Player)

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

Function: IsPlayer(Player)

Description: Checks if Player is an actual Player or Spawn.

Parameters:

  • Player: Spawn - The spawn or entity to check.

Returns: Boolean – true if this spawn is a Player; false if not.

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 IsPlayer(Spawn) then

Evidence: server/SpawnScripts/AbandonedLabs/Alia.lua:14; binding EQ2Emu_lua_IsPlayer.

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