# Player Joins Game

Grammar — Player p joins the game.
FlagsNative | Event

This event fires when a player joins the game. Use “Triggering Player” to get the player.

# Arguments

  • int — Player

Returns — void

native void TriggerAddEventPlayerJoin(
	trigger inTrigger,
	int player,
);

Category: Player / Player Settings

# Examples

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:11756

    libPEB1_gt_HeroAIPlayerJoins = TriggerCreate("libPEB1_gt_HeroAIPlayerJoins_Func");
    TriggerEnable(libPEB1_gt_HeroAIPlayerJoins, false);
    TriggerAddEventPlayerJoin(libPEB1_gt_HeroAIPlayerJoins, c_playerAny);
}

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:1644

    libPVEM_gt_PvEPlayerHeroAIPlayerJoins = TriggerCreate("libPVEM_gt_PvEPlayerHeroAIPlayerJoins_Func");
    TriggerEnable(libPVEM_gt_PvEPlayerHeroAIPlayerJoins, false);
    TriggerAddEventPlayerJoin(libPVEM_gt_PvEPlayerHeroAIPlayerJoins, c_playerAny);
}

mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmodbase.stormdata/LibLNYF.galaxy:951

void libLNYF_gt_PlayerReconnects_Init () {
    libLNYF_gt_PlayerReconnects = TriggerCreate("libLNYF_gt_PlayerReconnects_Func");
    TriggerAddEventPlayerJoin(libLNYF_gt_PlayerReconnects, c_playerAny);
}

mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmodbase.stormdata/LibLNYF.galaxy:1664

void libLNYF_gt_PlayerReconnects_HideUI_Init () {
    libLNYF_gt_PlayerReconnects_HideUI = TriggerCreate("libLNYF_gt_PlayerReconnects_HideUI_Func");
    TriggerAddEventPlayerJoin(libLNYF_gt_PlayerReconnects_HideUI, c_playerAny);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/AILib.galaxy:3127

    libAIAI_gt_HeroAIReleaseHeroControl = TriggerCreate("libAIAI_gt_HeroAIReleaseHeroControl_Func");
    TriggerEnable(libAIAI_gt_HeroAIReleaseHeroControl, false);
    TriggerAddEventPlayerJoin(libAIAI_gt_HeroAIReleaseHeroControl, c_playerAny);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:16158

    libGDHL_gt_HeroMedicMedivacDropshipRejoinHideMedivacUI = TriggerCreate("libGDHL_gt_HeroMedicMedivacDropshipRejoinHideMedivacUI_Func");
    TriggerEnable(libGDHL_gt_HeroMedicMedivacDropshipRejoinHideMedivacUI, false);
    TriggerAddEventPlayerJoin(libGDHL_gt_HeroMedicMedivacDropshipRejoinHideMedivacUI, c_playerAny);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:17767

void libGame_gt_PlayerRejoinsGame_Init () {
    libGame_gt_PlayerRejoinsGame = TriggerCreate("libGame_gt_PlayerRejoinsGame_Func");
    TriggerAddEventPlayerJoin(libGame_gt_PlayerRejoinsGame, c_playerAny);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:20839

void libGame_gt_VehicleReconnectionMonitor_Init () {
    libGame_gt_VehicleReconnectionMonitor = TriggerCreate("libGame_gt_VehicleReconnectionMonitor_Func");
    TriggerAddEventPlayerJoin(libGame_gt_VehicleReconnectionMonitor, c_playerAny);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:15597

void libUIUI_gt_UIPartyFramePlayerRejoins_Init () {
    libUIUI_gt_UIPartyFramePlayerRejoins = TriggerCreate("libUIUI_gt_UIPartyFramePlayerRejoins_Func");
    TriggerAddEventPlayerJoin(libUIUI_gt_UIPartyFramePlayerRejoins, c_playerAny);
}