# 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
- [F] —
void
— Player Ping — ( TriggerAddEventPing ) - [F] —
unit
— Player Ping Unit — ( EventPingUnit ) - [F] —
string
[ gamelink::Unit ] — Player Ping Unit Type — ( EventPingUnitType ) - [F] —
int
— Player Ping Unit ControlPlayer — ( EventPingUnitControlPlayer ) - [F] —
int
— Player Ping Unit UpkeepPlayer — ( EventPingUnitUpkeepPlayer ) - [F] —
point
— Player Ping Unit Position — ( EventPingUnitPosition ) - [F] —
bool
— Player Ping Unit Is Under Construction — ( EventPingUnitIsUnderConstruction ) - [F] —
point
— Player Ping Location — ( EventPingPoint ) - [F] —
bool
— Player Ping Is From Minimap — ( EventPingedMinimap ) - [F] —
int
— Player Ping Option — ( EventPingOption ) - [F] —
void
— Show/Hide Player Pings — ( PingSetPlayerPingsShown ) - [F] —
void
— Ping Minimap — ( MinimapPing ) - [F] —
void
— Ping Minimap Possible Enemy Start Locations — ( MinimapPingPossibleEnemyStartLocations ) - [F] —
int
[ ping ] — Create Ping (Deprecated) — ( PingCreate ) - [F] —
int
[ ping ] — Create Ping With Point Facing — ( PingCreateWithPlayerId ) - [F] —
int
[ ping ] — Create Ping From Data — ( PingCreateFromData ) - [F] —
void
— Create Ping Facing Angle — ( libNtve_gf_CreatePingFacingAngle ) - [F] —
void
— Show/Hide Ping — ( PingSetVisible ) - [F] —
int
[ ping ] — Last Created Ping — ( PingLastCreated ) - [F] —
bool
— Ping Is Visible — ( PingIsVisible )
# Examples
# campaigns/void.sc2campaign
// L773
PingCreateWithPlayerId(PlayerGroupAll(), "PingAlert", UnitGroupCenterOfGroup(lp_unitGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, gv_pLAYER_01_USER)
// L773
PingCreateWithPlayerId(PlayerGroupAll(), "PingAlert", UnitGroupCenterOfGroup(lp_unitGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, gv_pLAYER_01_USER)
# mods/core.stormmod
// L3070
PingCreateWithPlayerId(lp_players, lp_model, lv_pointWithAngle, lp_color, lp_duration, lp_pingType, lp_pingingPlayerId)
# mods/novastoryassets.sc2mod
// L3589
PingCreateWithPlayerId(PlayerGroupAll(), "PingArrow", PointFromName(("ArrowPing" + IntToString(IntLoopCurrent()))), Color(100.00, 0.00, 0.00), 0.0, gv_pLAYER_01_USER)
// L3589
PingCreateWithPlayerId(PlayerGroupAll(), "PingArrow", PointFromName(("ArrowPing" + IntToString(IntLoopCurrent()))), Color(100.00, 0.00, 0.00), 0.0, gv_pLAYER_01_USER)
# mods/starcoop/starcoop.sc2mod
// L507
PingCreateWithPlayerId(lp_players, lp_model, lp_position, lp_color, lp_duration, lp_playerId)