Skip to content

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.

ArePartyMembers(a, b)
Parameter Type
a number one player
b number the other

boolean

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 end
end

GetPlayerParty · the Parties group of the index