Lua functions

IsBehind

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

Historical signature: IsBehind(spawn, target)

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

Function: IsBehind(spawn, target)

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

Parameters:

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

Returns: True if Spawn is behind 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 not IsBehind(Caster, Target) then

Evidence: server/Spells/ClassicRefresh/Scout/Bard/Dirge/ScreamofDeath-2552919.lua:23; binding EQ2Emu_lua_IsBehind.

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