Lua functions

IsFlanking

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

Historical signature: IsFlanking(spawn, target)

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

Function: IsFlanking(spawn, target)

Description: Return's true if Spawn is flanking Target.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • target (Spawn) - Spawn object representing target.

Returns: True if Spawn is flanking Target, otherwise false.

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 IsFlanking(Caster, Target) then

Evidence: server/Spells/Scout/Bard/Dirge/DarosDullBlade.lua:10; binding EQ2Emu_lua_IsFlanking.

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