Lua functions

RemovePrimaryEntityCommand

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

Historical signature: RemovePrimaryEntityCommand(Spawn, CommandString)

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

Function: RemovePrimaryEntityCommand(Spawn, CommandString)

Description: Removes a previously added primary entity command from the specified spawn entirely. Players will no longer see that option when interacting with the spawn.

Parameters:

  • Spawn: Spawn – The entity from which to remove the command.
  • CommandString: String – The name of the command to remove.

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.

RemovePrimaryEntityCommand(NPC, "Punch")

Evidence: server/SpawnScripts/Commonlands/Mnemir.lua:94; binding EQ2Emu_lua_RemovePrimaryEntityCommand.

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