# 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
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::Model> — Modelpoint
— Positioncolor
— Colorfixed
— Durationint
— PlayerId
Returns — int
<ping>
native int PingCreateWithPlayerId(
playergroup players,
string modelLink,
point position,
color intColor,
fixed duration,
int player,
);
# 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
campaigns/void.sc2campaign — base.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.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"));
mods/core.stormmod — base.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.sc2mod — base2.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.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/starcoop/starcoop.sc2mod — base.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);