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.
Syntax
Section titled “Syntax”function OnFightEnd(a, b, reason) -- ...end| Parameter | Type | |
|---|---|---|
a |
number | one player |
b |
number | the other |
reason |
string | "timeout", "death", "left", "peace" or "mode" |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”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.") endendSee also
Section titled “See also”OnFightStart · EndFight · the Combat group of the index
