Skip to content

OnPartyCreate

A party came into being.

The first accepted invitation (or the mode’s first AddPlayerToParty) makes the group with the inviter leading. Fires before the two joins (OnPlayerJoinParty with "create" for the leader, then the newcomer’s reason).

function OnPartyCreate(party, leader)
-- ...
end
Parameter Type
party number the new party’s id
leader number the leader

nothing

function OnPartyCreate(party, leader)
SetPartyName(party, GetPlayerName(leader) .. "'s party")
end

OnPlayerJoinParty · OnPartyDisband · the Parties group of the index