Function: GetRace(spawn)
Description: Gets the race of the Spawn. See https://eq2emu.com/developers/references/races for a list.
Parameters:
spawn(Spawn) - Spawn object representingspawn.
Returns: UInt32 race of the Spawn.
GetRaceRegistered in this checkout as EQ2Emu_lua_GetRace; implementation found at WorldServer/Lua/LuaFunctions.cpp:2659.
Historical signature: GetRace(spawn)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Description: Gets the race of the Spawn. See https://eq2emu.com/developers/references/races for a list.
Parameters:
spawn (Spawn) - Spawn object representing spawn.Returns: UInt32 race of the Spawn.
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.
race = GetRace(NPC)
Evidence: server/SpawnScripts/Generic/GenericEcologyVoiceOvers.lua:81; binding EQ2Emu_lua_GetRace.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.