# Create Ping (Deprecated)

Grammar — Create a ping for players at position (using point facing), using model model and color color, lasting duration seconds
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

Returns — int [ ping ]

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

Category: Ping / Basic

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L602
PingCreate(PlayerGroupAll(), "PingObjective", RegionGetCenter(RegionFromId(13)), ColorWithAlpha(0.78, 26.27, 4.31, 0.00), 0.0)
// L605
PingCreate(PlayerGroupAll(), "PingObjective", RegionGetCenter(RegionFromId(14)), ColorWithAlpha(0.78, 26.27, 4.31, 0.00), 0.0)
// L608
PingCreate(PlayerGroupAll(), "PingObjective", RegionGetCenter(RegionFromId(15)), ColorWithAlpha(0.78, 26.27, 4.31, 0.00), 0.0)
// L611
PingCreate(PlayerGroupAll(), "PingWarning", RegionGetCenter(RegionFromId(2)), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L614
PingCreate(PlayerGroupAll(), "PingWarning", RegionGetCenter(RegionFromId(4)), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L617
PingCreate(PlayerGroupAll(), "PingWarning", RegionGetCenter(RegionFromId(5)), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L546
PingCreate(PlayerGroupAll(), "PingObjective", RegionGetCenter(RegionFromId(13)), ColorWithAlpha(0.78, 26.27, 4.31, 0.00), 0.0)
// L549
PingCreate(PlayerGroupAll(), "PingObjective", RegionGetCenter(RegionFromId(14)), ColorWithAlpha(0.78, 26.27, 4.31, 0.00), 0.0)
// L552
PingCreate(PlayerGroupAll(), "PingObjective", RegionGetCenter(RegionFromId(15)), ColorWithAlpha(0.78, 26.27, 4.31, 0.00), 0.0)
// L555
PingCreate(PlayerGroupAll(), "PingWarning", RegionGetCenter(RegionFromId(2)), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L558
PingCreate(PlayerGroupAll(), "PingWarning", RegionGetCenter(RegionFromId(4)), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L561
PingCreate(PlayerGroupAll(), "PingWarning", RegionGetCenter(RegionFromId(5)), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L606
PingCreate(PlayerGroupAll(), "PingObjective", RegionGetCenter(RegionFromId(13)), ColorWithAlpha(0.78, 26.27, 4.31, 0.00), 0.0)
// L609
PingCreate(PlayerGroupAll(), "PingObjective", RegionGetCenter(RegionFromId(14)), ColorWithAlpha(0.78, 26.27, 4.31, 0.00), 0.0)
// L612
PingCreate(PlayerGroupAll(), "PingObjective", RegionGetCenter(RegionFromId(15)), ColorWithAlpha(0.78, 26.27, 4.31, 0.00), 0.0)
// L615
PingCreate(PlayerGroupAll(), "PingWarning", RegionGetCenter(RegionFromId(2)), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L618
PingCreate(PlayerGroupAll(), "PingWarning", RegionGetCenter(RegionFromId(4)), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L621
PingCreate(PlayerGroupAll(), "PingWarning", RegionGetCenter(RegionFromId(5)), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L355
PingCreate(PlayerGroupSingle(gv_p1_USER), "PingSimple", UnitGetPosition(lp_unit), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 5.0)
// L2443
PingCreate(PlayerGroupSingle(gv_p1_USER), "PingSimple", UnitGetPosition(gv_pingConvoy), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 3.0)
// L4304
PingCreate(PlayerGroupSingle(gv_p1_USER), "PingSimple", UnitGetPosition(EventUnit()), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 4.0)
// L2043
PingCreate(PlayerGroupSingle(gv_pLAYER01_USER), "PingWarning", libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L2140
PingCreate(PlayerGroupSingle(gv_pLAYER01_USER), "PingWarning", libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L2235
PingCreate(PlayerGroupSingle(gv_pLAYER01_USER), "PingWarning", libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L3753
PingCreate(PlayerGroupAll(), "PingArrow", gv_pathtoAlpha[lv_pathIndex], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L3794
PingCreate(PlayerGroupAll(), "PingArrow", gv_pathtoBeta[lv_pathIndex], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L3835
PingCreate(PlayerGroupAll(), "PingArrow", gv_pathtoGamma[lv_pathIndex], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L3876
PingCreate(PlayerGroupAll(), "PingArrow", gv_pathtoOmega[lv_pathIndex], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L1341
PingCreate(PlayerGroupAll(), "PingWarning", RegionGetCenter(gv_infestationRegion[lv_colonyIndex]), ColorWithAlpha(100.00, 0.00, 0.00, 74.90), 0.0)
// L3372
PingCreate(PlayerGroupAll(), "PingArrow", gv_trainPath[lv_currentPingPoint], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L3386
PingCreate(PlayerGroupAll(), "PingArrow", gv_trainPath[lv_currentPingPoint], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L3428
PingCreate(PlayerGroupAll(), "PingArrow", gv_trainPath[lv_currentPingPoint], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L3441
PingCreate(PlayerGroupAll(), "PingArrow", gv_trainPath[lv_currentPingPoint], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L3483
PingCreate(PlayerGroupAll(), "PingArrow", gv_trainPath[lv_currentPingPoint], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L3496
PingCreate(PlayerGroupAll(), "PingArrow", gv_trainPath[lv_currentPingPoint], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L4779
PingCreate(PlayerGroupSingle(gv_pLAYER_01_USER), "PingBoss", PointFromId(1788), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L4781
PingCreate(PlayerGroupSingle(gv_pLAYER_01_USER), "PingBoss", PointFromId(1778), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L4834
PingCreate(PlayerGroupSingle(gv_pLAYER_01_USER), "PingBoss", PointFromId(1788), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L1225
PingCreate(PlayerGroupSingle(gv_p01_USER), "PingSimple", UnitGetPosition(UnitFromId(2)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L1443
PingCreate(PlayerGroupSingle(gv_p01_USER), "PingWarning", UnitGetPosition(gv_battlecruiser1), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L1448
PingCreate(PlayerGroupSingle(gv_p01_USER), "PingWarning", UnitGetPosition(gv_battlecruiser2), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L2706
PingCreate(PlayerGroupSingle(1), "PingNumeric1", UnitGetPosition(UnitFromId(808)), ColorWithAlpha(100.00, 50.20, 0.00, 0.00), 0.0)
// L2709
PingCreate(PlayerGroupSingle(1), "PingNumeric2", UnitGetPosition(UnitFromId(806)), ColorWithAlpha(100.00, 50.20, 0.00, 0.00), 0.0)
// L2712
PingCreate(PlayerGroupSingle(1), "PingNumeric3", UnitGetPosition(UnitFromId(807)), ColorWithAlpha(100.00, 50.20, 0.00, 0.00), 0.0)
// L5886
PingCreate(PlayerGroupAll(), "PingObjective", UnitGetPosition(gv_brutalisk), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0)
// L8178
PingCreate(PlayerGroupAll(), "PingObjective", PointFromId(1808), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L10592
PingCreate(PlayerGroupAll(), "PingObjective", PointFromId(194), ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0)
// L2118
PingCreate(PlayerGroupSingle(gv_p1_USER), "PingSimple", UnitGetPosition(EventUnit()), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L2550
PingCreate(PlayerGroupSingle(gv_p1_USER), "PingWarning", UnitGetPosition(EventUnit()), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L4183
PingCreate(PlayerGroupAll(), "PingWarning", PointFromId(463), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L4648
PingCreate(PlayerGroupAll(), "MinimapPing", RegionGetCenter(RegionFromId(59)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L5209
PingCreate(PlayerGroupAll(), "MinimapPing", RegionGetCenter(RegionFromId(59)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L2304
PingCreate(PlayerGroupActive(), "PingWarning", RegionGetCenter(gv_createNydusWormTarget), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 5.0)
// L2340
PingCreate(PlayerGroupActive(), "PingWarning", RegionGetCenter(gv_createNydusWormTarget), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 5.0)
// L4293
PingCreate(PlayerGroupAll(), "PingArrow", gv_sitePath1[lv_pathIndex], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L4338
PingCreate(PlayerGroupAll(), "PingArrow", gv_sitePath2[lv_pathIndex], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L4383
PingCreate(PlayerGroupAll(), "PingArrow", gv_sitePath3[lv_pathIndex], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L4211
PingCreate(gv_fORCEGOOD_GUYS, "PingObjective", UnitGetPosition(UnitFromId(37)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L4312
PingCreate(gv_fORCEGOOD_GUYS, "PingObjective", UnitGetPosition(gv_uNITVault), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L4975
PingCreate(PlayerGroupAll(), "PingWarning", UnitGetPosition(lv_nydusWorm), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L7913
PingCreate(PlayerGroupAll(), "PingObjective", PointFromId(1189), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L7915
PingCreate(PlayerGroupAll(), "PingObjective", PointFromId(1190), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L7917
PingCreate(PlayerGroupAll(), "PingObjective", PointFromId(1191), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L1197
PingCreate(PlayerGroupAll(), "PingBoss", UnitGetPosition(gv_leviathan), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L3771
PingCreate(PlayerGroupAll(), "PingSimple", UnitGetPosition(gv_firstMutaSpawner), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L3951
PingCreate(PlayerGroupAll(), "PingAlert", PointFromId(199), ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 4.0)
// L3952
PingCreate(PlayerGroupAll(), "PingAlert", PointFromId(202), ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 4.0)
// L3953
PingCreate(PlayerGroupAll(), "PingAlert", PointFromId(299), ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 4.0)
// L3954
PingCreate(PlayerGroupAll(), "PingAlert", PointFromId(342), ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 4.0)
// L3955
PingCreate(PlayerGroupAll(), "PingAlert", PointFromId(470), ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 4.0)
// L3956
PingCreate(PlayerGroupAll(), "PingAlert", PointFromId(531), ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 4.0)
// L4052
PingCreate(PlayerGroupAll(), "PingAlert", PointFromId(116), ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 4.0)
// L4053
PingCreate(PlayerGroupAll(), "PingAlert", PointFromId(138), ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 4.0)
// L5952
PingCreate(PlayerGroupAll(), "PingArrow", gv_runoutPingPoints[auto59554051_var], ColorWithAlpha(0.00, 100.00, 0.00, 0.00), lv_real)
// L8280
PingCreate(PlayerGroupSingle(gv_p1_USER), "PingObjective", UnitGetPosition(UnitFromId(1561)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L5653
PingCreate(PlayerGroupAll(), "PingObjective", PointFromId(651), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L5659
PingCreate(PlayerGroupAll(), "PingObjective", PointFromId(656), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L5665
PingCreate(PlayerGroupAll(), "PingObjective", PointFromId(659), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L5941
PingCreate(PlayerGroupAll(), "PingObjective", PointFromId(603), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0)
// L5949
PingCreate(PlayerGroupAll(), "PingObjective", PointFromId(549), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0)
// L5957
PingCreate(PlayerGroupAll(), "PingObjective", PointFromId(355), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0)
// L735
PingCreate(PlayerGroupSingle(gv_p01_USER), "PingObjective", UnitGetPosition(UnitFromId(952)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L4051
PingCreate(PlayerGroupSingle(gv_p01_USER), "PingObjective", UnitGetPosition(UnitFromId(46)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L4055
PingCreate(PlayerGroupSingle(gv_p01_USER), "PingObjective", UnitGetPosition(UnitFromId(929)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L4059
PingCreate(PlayerGroupSingle(gv_p01_USER), "PingObjective", UnitGetPosition(UnitFromId(38)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L4063
PingCreate(PlayerGroupSingle(gv_p01_USER), "PingObjective", UnitGetPosition(UnitFromId(36)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0)
// L355
PingCreate(PlayerGroupSingle(gv_p1_USER), "PingSimple", UnitGetPosition(lp_unit), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 5.0)
// L2443
PingCreate(PlayerGroupSingle(gv_p1_USER), "PingSimple", UnitGetPosition(gv_pingConvoy), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 3.0)
// L4304
PingCreate(PlayerGroupSingle(gv_p1_USER), "PingSimple", UnitGetPosition(EventUnit()), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 4.0)
// L2043
PingCreate(PlayerGroupSingle(gv_pLAYER01_USER), "PingWarning", libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L2140
PingCreate(PlayerGroupSingle(gv_pLAYER01_USER), "PingWarning", libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L2235
PingCreate(PlayerGroupSingle(gv_pLAYER01_USER), "PingWarning", libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0)
// L3753
PingCreate(PlayerGroupAll(), "PingArrow", gv_pathtoAlpha[lv_pathIndex], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L3794
PingCreate(PlayerGroupAll(), "PingArrow", gv_pathtoBeta[lv_pathIndex], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L3835
PingCreate(PlayerGroupAll(), "PingArrow", gv_pathtoGamma[lv_pathIndex], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L3876
PingCreate(PlayerGroupAll(), "PingArrow", gv_pathtoOmega[lv_pathIndex], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L1341
PingCreate(PlayerGroupAll(), "PingWarning", RegionGetCenter(gv_infestationRegion[lv_colonyIndex]), ColorWithAlpha(100.00, 0.00, 0.00, 74.90), 0.0)
// L3372
PingCreate(PlayerGroupAll(), "PingArrow", gv_trainPath[lv_currentPingPoint], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L3386
PingCreate(PlayerGroupAll(), "PingArrow", gv_trainPath[lv_currentPingPoint], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)
// L3428
PingCreate(PlayerGroupAll(), "PingArrow", gv_trainPath[lv_currentPingPoint], ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 6.0)