EndFight
Ends the fight between two players.
Both clients drop the lock; OnFightEnd fires with "mode". Nothing happens when the two were not fighting.
/peace ends every fight of the caller the same way.
Syntax
Section titled “Syntax”EndFight(a, b)| Parameter | Type | |
|---|---|---|
a |
number | one player |
b |
number | the other |
Returns
Section titled “Returns”boolean - false when one of them is not connected
Example
Section titled “Example”local function endDuel(a, b) EndFight(a, b) HealPlayer(a) HealPlayer(b)endSee also
Section titled “See also”StartFight · OnFightEnd · the Combat group of the index
