Skip to content

OnFightEnd

A fight between two players is over.

reason is "timeout" ([combat] fight_timeout seconds without a blow), "death", "left" (a disconnect), "peace" (/peace) or "mode" (EndFight). Both clients drop the lock.

function OnFightEnd(a, b, reason)
-- ...
end
Parameter Type
a number one player
b number the other
reason string "timeout", "death", "left", "peace" or "mode"

nothing

function OnFightEnd(a, b, reason)
if reason == "timeout" then
SendClientMessage(a, COLOUR_SERVER, "The fight is over - nobody landed a blow.")
SendClientMessage(b, COLOUR_SERVER, "The fight is over - nobody landed a blow.")
end
end

OnFightStart · EndFight · the Combat group of the index