Lua functions

SetCurrentHP

Historical function name; no current lua_register binding was found.

Historical signature: SetCurrentHP(spawn, value)

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

Function: SetCurrentHP(spawn, value)

Description:

Set's the current spawn hp value if the hp value + current hp is less than total hp. Otherwise it will override the total hp. This function is an alias of SetHP(spawn, value)

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • value (int32) - Integer value value.

Returns: None.

Checked example

No checked example is published for this function yet. No active lua_register binding in this checkout.

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