# Set Ping Model
Grammar — Set ping to use model model
Flags —Native
|Action
Sets the model of the ping.
# Arguments
int
<ping> — Pingstring
<gamelink::Model> — Model
Returns — void
native void PingSetModel(int p, string modelLink);
# Related
Category: Ping / Advanced
- Move Ping —
void
— PingSetPosition - Make Ping Face Angle —
void
— PingSetRotation - Attach Ping To Unit —
void
— PingSetUnit - Position Of Ping —
point
— PingGetPosition - Facing Angle Of Ping —
fixed
— PingGetRotation - Ping Unit —
unit
— PingGetUnit - Set Ping Scale —
void
— PingSetScale - Set Ping Depth —
void
— PingSetDepth - Set Ping Tooltip —
void
— PingSetTooltip - Set Ping Color —
void
— PingSetColor - Set Ping Duration —
void
— PingSetDuration - Set Ping Model —
void
— PingSetModel - Set Ping Players —
void
— PingSetPlayerGroup - Set Ping Use Unit Team Color —
void
— PingSetUseUnitTeamColor - Set Ping Use Unit Visibility —
void
— PingSetUseUnitVisibility - Set Ping Observer Display —
void
— PingSetObserver - Set Ping Use Player Vision —
void
— PingSetUsePlayerVision - Destroy Ping —
void
— PingDestroy - Destroy All Pings —
void
— PingDestroyAll - Ping Scale —
fixed
— PingGetScale - Ping Depth —
fixed
— PingGetDepth - Ping Tooltip —
text
— PingGetTooltip - Color Of Ping —
color
— PingGetColor - Duration of Ping —
fixed
— PingGetDuration - Ping Players —
playergroup
— PingGetPlayerGroup
# Examples
campaigns/void.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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"));
mods/heroesdata.stormmod — base.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.sc2mod — base2.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.sc2mod — base2.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.sc2mod — base2.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.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.sc2mod/base2.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.sc2mod/base2.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);