# Create Ping From Data

Grammar — Create a ping for players at position (using point facing), using pingData
FlagsNative | Action

Creates a minimap ping using the facing angle of a point. Use “Last Created Ping” to refer to the created ping.

# Arguments

  • playergroup — Players
  • string<gamelink::Ping> — Ping Data
  • point — Position

Returns — int<ping>

native int PingCreateFromData(
	playergroup players,
	string pingLink,
	point position,
);

Category: Ping / Basic

# Examples

mods/heroesbrawlmods/arenamodemods/gardenarena.stormmodbase.stormdata/LibAMGT.galaxy:501

    }
    DialogControlSetVisible(libAMGT_gv_aRMGardenPanel.lv_gardenOfTerrorShamblersFrame, PlayerGroupAll(), true);
    PingCreateFromData(PlayerGroupAll(), "StormArenaAlert", RegionGetCenter(libAMGT_gv_aRMGardenMinionGroup[lp_groupIndex].lv_area));
    PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00));
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/lib_AMGT_D17D4BB9"));

mods/heroesbrawlmods/arenamodemods/gardenarena.stormmodbase.stormdata/LibAMGT.galaxy:506

    PingSetScale(PingLastCreated(), 0.6);
    lv_ping1 = PingLastCreated();
    PingCreateFromData(PlayerGroupAll(), "StormObjective", RegionGetCenter(libAMGT_gv_aRMGardenMinionGroup[lp_groupIndex].lv_area));
    PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00));
    PingSetScale(PingLastCreated(), 0.6);

mods/heroesbrawlmods/arenamodemods/gardenarena.stormmodbase.stormdata/LibAMGT.galaxy:708

    libAMGT_gv_aRMGardenTerrors[lp_index].lv_spawning = true;
    DialogControlSetVisible(libAMGT_gv_aRMGardenPanel.lv_gardenOfTerrorGolemFrame, PlayerGroupAll(), true);
    PingCreateFromData(PlayerGroupAll(), "StormArenaAlert", libAMGT_gv_aRMGardenTerrors[lp_index].lv_position);
    PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00));
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/lib_AMGT_95104AF5"));

mods/heroesbrawlmods/arenamodemods/gardenarena.stormmodbase.stormdata/LibAMGT.galaxy:713

    PingSetScale(PingLastCreated(), 0.8);
    lv_ping1 = PingLastCreated();
    PingCreateFromData(PlayerGroupAll(), "StormObjective", libAMGT_gv_aRMGardenTerrors[lp_index].lv_position);
    PingSetColor(PingLastCreated(), Color(100.00, 100.00, 0.00));
    PingSetScale(PingLastCreated(), 0.8);

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:2588

    libPVEM_gf_PvECreateDefenderAI(libNtve_gf_ConvertUnitToUnitGroup(libPEB1_gv_archangelAreas[lp_areaIndex].lv_archangelUnit), RegionCircle(UnitGetPosition(libPEB1_gv_archangelAreas[lp_areaIndex].lv_archangelUnit), 10.0), libPEB1_gv_archangelAreas[lp_areaIndex].lv_region, true);
    libPEB1_gv_archangelDefenderIndex[lp_areaIndex] = libAIAI_gf_LastCreatedDefenderAI();
    PingCreateFromData(PlayerGroupAll(), "StormBoss", RegionGetCenter(libPEB1_gv_archangelAreas[lp_areaIndex].lv_region));
    libPEB1_gv_archangelAreas[lp_areaIndex].lv_archangelPing = PingLastCreated();
    PingSetColor(libPEB1_gv_archangelAreas[lp_areaIndex].lv_archangelPing, libCore_gv_cOLOREnemyColor);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:3014

    // Automatic Variable Declarations
    // Implementation
    PingCreateFromData(lp_players, lp_pingData, lp_position);
    if ((lp_color != ColorWithAlpha(0,0,0,0))) {
        PingSetColor(PingLastCreated(), lp_color);

mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmodbase.stormdata/LibVLSK.galaxy:537

    libVLSK_gf_SetPilotPortrait(null);
    libVLSK_gf_ShowRobotSlideoutStatusFrameforUnit(libVLSK_gv_giantRobotUnit);
    PingCreateFromData(PlayerGroupAll(), "StormAlert", lp_spawnPoint);
    lv_ping = PingLastCreated();
    PingSetDuration(lv_ping, 3.0);

mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmodbase.stormdata/LibVLSK.galaxy:1037

    libNtve_gf_CreateUnitsWithDefaultFacing(1, libVLSK_gv_capturePoints[lp_point].lv_minimapIconUnitType, c_unitCreateIgnorePlacement, libCore_gv_cOMPUTER_Neutral, RegionGetCenter(libVLSK_gv_capturePoints[lp_point].lv_region), null);
    libVLSK_gv_capturePoints[lp_point].lv_minimapIconUnit = UnitLastCreated();
    PingCreateFromData(PlayerGroupAll(), "StormAlert", RegionGetCenter(libVLSK_gv_capturePoints[libVLSK_gv_currentCapturePoint].lv_region));
    lv_ping = PingLastCreated();
    DialogControlSetVisible(libVLSK_gv_volskayaUI.lv_slideout_IconA, PlayerGroupAll(), false);

mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmodbase.stormdata/LibVLSK.galaxy:1769

    TriggerEnable(TriggerGetCurrent(), false);
    libVLSK_gf_PlayVORobotNeedsaPilot(lv_robotTeam);
    PingCreateFromData(libGame_gf_PlayersOnTeamHeroes(lv_robotTeam, false), "StormAlert", UnitGetPosition(lv_robotUnit));
    lv_ping = PingLastCreated();
    PingSetUnit(lv_ping, lv_robotUnit);

mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmodbase.stormdata/LibVLSK.galaxy:1811

    TriggerEnable(TriggerGetCurrent(), false);
    libVLSK_gf_PlayVORobotNeedsaGunner(libGame_gf_TeamNumberOfPlayer(UnitGetOwner(lv_robotUnit)));
    PingCreateFromData(libGame_gf_PlayersOnTeamHeroes(lv_robotTeam, false), "StormAlert", UnitGetPosition(lv_robotUnit));
    lv_ping = PingLastCreated();
    PingSetUnit(lv_ping, lv_robotUnit);