Lua functions

InFront

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

Historical signature: InFront(spawn, target)

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

Function: InFront(spawn, target)

Description:

Return's true if Spawn is in front of target.

Parameters:

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

Returns: Return's true if Spawn is in front of 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 InFront(Caster, Target) then

Evidence: server/Spells/ClassicRefresh/Fighter/Brawler/BruisingStrike-2551020.lua:14; binding EQ2Emu_lua_InFront.

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