Historical signature: CastEntityCommand(caster, target, id, command)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: CastEntityCommand(caster, target, id, command)
Description:
Calls an Entity Command through LUA versus the player triggering it themselves.
Parameters:
caster (Spawn) - Spawn object representing caster.
target (Spawn) - Spawn object representing target.
id (uint32) - Integer value id.
command (string) - String command.
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.
CastEntityCommand(Player, target, 1312, "Reap")
Evidence: server/ItemScripts/SpiritReaper.lua:15; binding EQ2Emu_lua_CastEntityCommand.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.