ArePartyMembers
Whether two players are in one party.
For the mode’s own rules - loot shared with the party, a duel refused between friends, a party chat.
Syntax
Section titled “Syntax”ArePartyMembers(a, b)| Parameter | Type | |
|---|---|---|
a |
number | one player |
b |
number | the other |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”function OnPlayerDamage(pid, attacker, damage, zone, part, weapon, dtype) -- friendly fire is refused by the server already; this is for a mode that turned it on and wants half damage if attacker >= 0 and ArePartyMembers(pid, attacker) then return damage * 0.5 endendSee also
Section titled “See also”GetPlayerParty · the Parties group of the index
