Lua functions

SetAttackable

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

Historical signature: SetAttackable(spawn, attackable)

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

Function: SetAttackable(spawn, attackable)

Description: Sets the Spawn attackable or not.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • attackable (int32) - Integer value attackable.

Returns: None.

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.

SetAttackable(rat, 1)

Evidence: server/Quests/FarJourneyFreeport/TasksaboardtheFarJourney.lua:150; binding EQ2Emu_lua_SetAttackable.

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