# Create Ping With Point Facing

Grammar — Create a ping for players at position (using point facing), using model model and color color, lasting duration seconds, player id playerId|PlayerID
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::Model> — Model
  • point — Position
  • color — Color
  • fixed — Duration
  • int — PlayerId

Returns — int<ping>

native int PingCreateWithPlayerId(
	playergroup players,
	string modelLink,
	point position,
	color intColor,
	fixed duration,
	int player,
);

Category: Ping / Basic

# Examples

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur05.sc2map/MapScript.galaxy:773

    }
    if ((UnitGroupCount(lp_unitGroup, c_unitCountAlive) > lv_transportCount)) {
        PingCreateWithPlayerId(PlayerGroupAll(), "PingAlert", UnitGroupCenterOfGroup(lp_unitGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, gv_pLAYER_01_USER);
        lv_wavePing = PingLastCreated();
        PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/7F578510"));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur05.sc2mapMapScript.galaxy:773

    }
    if ((UnitGroupCount(lp_unitGroup, c_unitCountAlive) > lv_transportCount)) {
        PingCreateWithPlayerId(PlayerGroupAll(), "PingAlert", UnitGroupCenterOfGroup(lp_unitGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, gv_pLAYER_01_USER);
        lv_wavePing = PingLastCreated();
        PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/7F578510"));

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3070

    // Implementation
    lv_pointWithAngle = libNtve_gf_PointFacingAngle(lp_position, lp_angle);
    PingCreateWithPlayerId(lp_players, lp_model, lv_pointWithAngle, lp_color, lp_duration, lp_pingType, lp_pingingPlayerId);
}

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova04.sc2map/MapScript.galaxy:3849

    for ( ; autoF942182F_var <= autoF942182F_ae; autoF942182F_var += 1 ) {
        if ((gv_attackMode == true)) {
            PingCreateWithPlayerId(PlayerGroupAll(), "PingArrow", PointFromName(("ArrowPing" + IntToString(autoF942182F_var))), Color(100.00, 0.00, 0.00), 0.0, gv_pLAYER_01_USER);
            PingSetScale(PingLastCreated(), 0.8);
            gv_mothershipArrows[autoF942182F_var] = PingLastCreated();

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova04.sc2mapMapScript.galaxy:3849

    for ( ; autoF942182F_var <= autoF942182F_ae; autoF942182F_var += 1 ) {
        if ((gv_attackMode == true)) {
            PingCreateWithPlayerId(PlayerGroupAll(), "PingArrow", PointFromName(("ArrowPing" + IntToString(autoF942182F_var))), Color(100.00, 0.00, 0.00), 0.0, gv_pLAYER_01_USER);
            PingSetScale(PingLastCreated(), 0.8);
            gv_mothershipArrows[autoF942182F_var] = PingLastCreated();

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:507

    // Automatic Variable Declarations
    // Implementation
    PingCreateWithPlayerId(lp_players, lp_model, lp_position, lp_color, lp_duration, lp_playerId);
    if (((libCOMU_gf_MutatorIsEnabled("BlackFog") == true) || (libCOMU_gf_MutatorIsEnabled("UberDarkness") == true))) {
        PingSetUsePlayerVision(PingLastCreated(), true);