GetPlayerOpponents
Everyone the player is fighting right now.
Syntax
Section titled “Syntax”GetPlayerOpponents(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”table - a list of pids, {} at peace
Example
Section titled “Example”for _, other in ipairs(GetPlayerOpponents(pid)) do EndFight(pid, other) end -- what /peace doesSee also
Section titled “See also”AreFighting · EndFight · the Combat group of the index
