# Set Ping Model

Grammar — Set ping to use model model
FlagsNative | Action

Sets the model of the ping.

# Arguments

  • int<ping> — Ping
  • string<gamelink::Model> — Model

Returns — void

native void PingSetModel(int p, string modelLink);

Category: Ping / Advanced

# Examples

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim02.sc2map/MapScript.galaxy:1740

            if ((gv_tugOfWar_State != ge_PRESETTugOfWarState_Hold)) {
                gv_tugOfWar_State = ge_PRESETTugOfWarState_Hold;
                PingSetModel(gv_tugOfWar_Ping, "PingCircleImportant");
                PingSetColor(gv_tugOfWar_Ping, Color(100.00, 100.00, 100.00));
                PingSetTooltip(gv_tugOfWar_Ping, StringExternal("Param/Value/4493EF8F"));

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim02.sc2map/MapScript.galaxy:1756

                gv_alarakPushedBack = true;
                gv_tugOfWar_State = ge_PRESETTugOfWarState_Reverse;
                PingSetModel(gv_tugOfWar_Ping, "PingArrow");
                PingSetColor(gv_tugOfWar_Ping, Color(100.00, 0.00, 0.00));
                PingSetTooltip(gv_tugOfWar_Ping, StringExternal("Param/Value/7110633D"));

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim02.sc2map/MapScript.galaxy:1771

            if ((gv_tugOfWar_State != ge_PRESETTugOfWarState_Forward)) {
                gv_tugOfWar_State = ge_PRESETTugOfWarState_Forward;
                PingSetModel(gv_tugOfWar_Ping, "PingArrow");
                PingSetColor(gv_tugOfWar_Ping, Color(0.00, 100.00, 0.00));
                PingSetTooltip(gv_tugOfWar_Ping, StringExternal("Param/Value/F1FA574E"));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim02.sc2mapMapScript.galaxy:1740

            if ((gv_tugOfWar_State != ge_PRESETTugOfWarState_Hold)) {
                gv_tugOfWar_State = ge_PRESETTugOfWarState_Hold;
                PingSetModel(gv_tugOfWar_Ping, "PingCircleImportant");
                PingSetColor(gv_tugOfWar_Ping, Color(100.00, 100.00, 100.00));
                PingSetTooltip(gv_tugOfWar_Ping, StringExternal("Param/Value/4493EF8F"));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim02.sc2mapMapScript.galaxy:1756

                gv_alarakPushedBack = true;
                gv_tugOfWar_State = ge_PRESETTugOfWarState_Reverse;
                PingSetModel(gv_tugOfWar_Ping, "PingArrow");
                PingSetColor(gv_tugOfWar_Ping, Color(100.00, 0.00, 0.00));
                PingSetTooltip(gv_tugOfWar_Ping, StringExternal("Param/Value/7110633D"));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim02.sc2mapMapScript.galaxy:1771

            if ((gv_tugOfWar_State != ge_PRESETTugOfWarState_Forward)) {
                gv_tugOfWar_State = ge_PRESETTugOfWarState_Forward;
                PingSetModel(gv_tugOfWar_Ping, "PingArrow");
                PingSetColor(gv_tugOfWar_Ping, Color(0.00, 100.00, 0.00));
                PingSetTooltip(gv_tugOfWar_Ping, StringExternal("Param/Value/F1FA574E"));

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

    libCore_gf_CreateMinimapPingStorm(lv_pingGroup, "StormWarning", UnitGetPosition(lp_coreUnit), ColorWithAlpha(0,0,0,0), -1);
    libGame_gv_towerTeamCoreAlertPing[lp_teamNumber] = PingLastCreated();
    PingSetModel(PingLastCreated(), "StormPingCoreAttack");
    PingSetUnit(PingLastCreated(), lp_coreUnit);
    PingSetRotation(PingLastCreated(), 270.0);

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:3034

        lv_pingPoint = PointFromId(2396);
        if ((gv_subwayPings[3] != c_invalidPingId)) {
            PingSetModel(gv_subwayPings[3], "BeaconScoutPing");
            PingSetPosition(gv_subwayPings[3], PointFromId(2396));
            PingSetScale(gv_subwayPings[3], 0.6);

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:3053

        lv_pingPoint = PointFromId(3284);
        if ((gv_subwayPings[2] != c_invalidPingId)) {
            PingSetModel(gv_subwayPings[2], "BeaconScoutPing");
            PingSetPosition(gv_subwayPings[2], PointFromId(3284));
            PingSetScale(gv_subwayPings[2], 0.6);

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:3072

        lv_pingPoint = PointFromId(2397);
        if ((gv_subwayPings[4] != c_invalidPingId)) {
            PingSetModel(gv_subwayPings[4], "BeaconScoutPing");
            PingSetPosition(gv_subwayPings[4], PointFromId(2397));
            PingSetScale(gv_subwayPings[4], 0.6);

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2mapMapScript.galaxy:3034

        lv_pingPoint = PointFromId(2396);
        if ((gv_subwayPings[3] != c_invalidPingId)) {
            PingSetModel(gv_subwayPings[3], "BeaconScoutPing");
            PingSetPosition(gv_subwayPings[3], PointFromId(2396));
            PingSetScale(gv_subwayPings[3], 0.6);

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2mapMapScript.galaxy:3053

        lv_pingPoint = PointFromId(3284);
        if ((gv_subwayPings[2] != c_invalidPingId)) {
            PingSetModel(gv_subwayPings[2], "BeaconScoutPing");
            PingSetPosition(gv_subwayPings[2], PointFromId(3284));
            PingSetScale(gv_subwayPings[2], 0.6);

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2mapMapScript.galaxy:3072

        lv_pingPoint = PointFromId(2397);
        if ((gv_subwayPings[4] != c_invalidPingId)) {
            PingSetModel(gv_subwayPings[4], "BeaconScoutPing");
            PingSetPosition(gv_subwayPings[4], PointFromId(2397));
            PingSetScale(gv_subwayPings[4], 0.6);