# Create Ping From Data
Grammar — Create a ping for players at position (using point facing), using pingData
Flags —Native
|Action
Creates a minimap ping using the facing angle of a point. Use “Last Created Ping” to refer to the created ping.
# Arguments
playergroup
— Playersstring
<gamelink::Ping> — Ping Datapoint
— Position
Returns — int
<ping>
native int PingCreateFromData(
playergroup players,
string pingLink,
point position,
);
# Related
Category: Ping / Basic
- Player Ping —
void
— TriggerAddEventPing - Player Ping Unit —
unit
— EventPingUnit - Player Ping Unit Type —
string
<gamelink::Unit> — EventPingUnitType - Player Ping Unit ControlPlayer —
int
— EventPingUnitControlPlayer - Player Ping Unit UpkeepPlayer —
int
— EventPingUnitUpkeepPlayer - Player Ping Unit Position —
point
— EventPingUnitPosition - Player Ping Unit Is Under Construction —
bool
— EventPingUnitIsUnderConstruction - Player Ping Location —
point
— EventPingPoint - Player Ping Is From Minimap —
bool
— EventPingedMinimap - Player Ping Option —
int
— EventPingOption - Show/Hide Player Pings —
void
— PingSetPlayerPingsShown - Ping Minimap —
void
— MinimapPing - Ping Minimap Possible Enemy Start Locations —
void
— MinimapPingPossibleEnemyStartLocations - Create Ping (Deprecated) —
int
<ping> — PingCreate - Create Ping With Point Facing —
int
<ping> — PingCreateWithPlayerId - Create Ping From Data —
int
<ping> — PingCreateFromData - Create Ping Facing Angle —
void
— libNtve_gf_CreatePingFacingAngle - Show/Hide Ping —
void
— PingSetVisible - Last Created Ping —
int
<ping> — PingLastCreated - Ping Is Visible —
bool
— PingIsVisible
# Examples
mods/heroesbrawlmods/arenamodemods/gardenarena.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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);