# Пользовательские дополнения

На главную

## group.SetLeader( name )

Попытка будучи лидером группы назначить на эту роль другого персонажа из группы.

    -- библиотека:
    group

    -- объявление:
    function SetLeader( name )

    -- параметры:
    name: WString - имя игрока из группы

    -- возвращаемое значение
    нет

    -- пример:
    group.SetLeader( memberName )

#### Search: "CategoryLuaApi" "CategoryGroup"

CategoryGroup
EnumGroupInviteFailed
EnumGroupKickFailed
EnumGroupMemberState
EnumReadyCheckReadyState
EventAvatarItemTakenByGroupmate
EventAvatarMoneyTakenByGroupmate
EventGroupAcceptError
EventGroupAppeared
EventGroupChanged
EventGroupDecline
EventGroupDeclineBusy
EventGroupDeclineIgnored
EventGroupDisappeared
EventGroupInvite
EventGroupInviteFailed
EventGroupItemQualityChanged
EventGroupKickFailed
EventGroupLeaderChanged
EventGroupLootSchemeChanged
EventGroupMemberAdded
EventGroupMemberChanged
EventGroupMemberRemoved
EventPartyMemberPositionUpdated
EventReadyCheckEnded
EventReadyCheckInfoChanged
EventReadyCheckStarted
EventTeleportOfferRequest
FunctionAvatarGetChannelsInfo
FunctionAvatarSwitchToChannel
FunctionAvatarTeleportOfferReply
FunctionGroupAccept
FunctionGroupCanInvite
FunctionGroupCanKickMember
FunctionGroupDecline
FunctionGroupGetLeaderIndex
FunctionGroupGetMemberIndexByName
FunctionGroupGetMemberInfoByPersistentId
FunctionGroupGetMemberNameByIndex
FunctionGroupGetMembers
FunctionGroupGetReadyCheckInfo
FunctionGroupGetShipOwnerIndex
FunctionGroupInvite
FunctionGroupInviteByName
FunctionGroupIsAutomatic
FunctionGroupIsCreatureInGroup
FunctionGroupIsLeader
FunctionGroupKickMember
FunctionGroupKickMerc
FunctionGroupLeave
FunctionGroupReportReadyCheck
FunctionGroupSetLeader
FunctionGroupStartReadyCheck

CategoryLuaApi CategoryFunction CategoryGroup

На главную