# Convert Player To Player Group

Grammar — Player group(p)
FlagsNative | Function

Returns a player group containing the specified player. This allows you to call a specific player as a player group parameter in triggers.

# Arguments

  • int — Player

Returns — playergroup

native playergroup PlayerGroupSingle(int inPlayer);

Category: Player Group / Useful Player Groups

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L355
PlayerGroupSingle(gv_p1_USER)
// L2443
PlayerGroupSingle(gv_p1_USER)
// L4304
PlayerGroupSingle(gv_p1_USER)
// L6333
PlayerGroupSingle(gv_p1_USER)
// L1837
PlayerGroupSingle(gv_pLAYER_01_USER)
// L2899
PlayerGroupSingle(gv_pLAYER_01_USER)
// L2900
PlayerGroupSingle(gv_pLAYER_01_USER)
// L1013
PlayerGroupSingle(gv_pLAYER01_USER)
// L1019
PlayerGroupSingle(gv_pLAYER01_USER)
// L1025
PlayerGroupSingle(gv_pLAYER01_USER)
// L1171
PlayerGroupSingle(gv_pLAYER01_USER)
// L2043
PlayerGroupSingle(gv_pLAYER01_USER)
// L2140
PlayerGroupSingle(gv_pLAYER01_USER)
// L2235
PlayerGroupSingle(gv_pLAYER01_USER)
// L3933
PlayerGroupSingle(gv_pLAYER01_USER)
// L3934
PlayerGroupSingle(gv_pLAYER01_USER)
// L955
PlayerGroupSingle(gv_p02_ZERG_EAST)
// L2920
PlayerGroupSingle(gv_p01_USER)
// L3182
PlayerGroupSingle(gv_p01_USER)
// L3183
PlayerGroupSingle(gv_p01_USER)
// L3184
PlayerGroupSingle(gv_p01_USER)
// L4313
PlayerGroupSingle(gv_pLAYER_01_USER)
// L4329
PlayerGroupSingle(gv_pLAYER_01_USER)
// L4343
PlayerGroupSingle(gv_pLAYER_01_USER)
// L4356
PlayerGroupSingle(gv_pLAYER_01_USER)
// L4369
PlayerGroupSingle(gv_pLAYER_01_USER)
// L4376
PlayerGroupSingle(gv_pLAYER_01_USER)
// L4383
PlayerGroupSingle(gv_pLAYER_01_USER)
// L4426
PlayerGroupSingle(gv_pLAYER_01_USER)
// L4436
PlayerGroupSingle(gv_pLAYER_01_USER)
// L4482
PlayerGroupSingle(gv_pLAYER_01_USER)
// L999
PlayerGroupSingle(gv_p01_USER)
// L3422
PlayerGroupSingle(gv_p01_USER)
// L1225
PlayerGroupSingle(gv_p01_USER)
// L1412
PlayerGroupSingle(gv_odinAIPlayerTarget)
// L1443
PlayerGroupSingle(gv_p01_USER)
// L1448
PlayerGroupSingle(gv_p01_USER)
// L1678
PlayerGroupSingle(gv_odinAIPlayerTarget)
// L1896
PlayerGroupSingle(gv_p02_TYCHUS)
// L1897
PlayerGroupSingle(gv_p02_TYCHUS)
// L1898
PlayerGroupSingle(gv_p02_TYCHUS)
// L1899
PlayerGroupSingle(gv_p02_TYCHUS)
// L1900
PlayerGroupSingle(gv_p02_TYCHUS)
// L2706
PlayerGroupSingle(1)
// L2709
PlayerGroupSingle(1)
// L2712
PlayerGroupSingle(1)
// L4076
PlayerGroupSingle(gv_p01_USER)
// L4077
PlayerGroupSingle(gv_p01_USER)
// L4078
PlayerGroupSingle(gv_p01_USER)
// L6360
PlayerGroupSingle(gv_p01_USER)
// L6369
PlayerGroupSingle(gv_p01_USER)
// L6378
PlayerGroupSingle(gv_p01_USER)
// L6465
PlayerGroupSingle(gv_p01_USER)
// L5897
PlayerGroupSingle(gv_p01_USER)
// L331
PlayerGroupSingle(gv_pLAYER_01_USER)
// L1970
PlayerGroupSingle(gv_pLAYER01_USER)
// L1972
PlayerGroupSingle(gv_pLAYER01_USER)
// L2048
PlayerGroupSingle(gv_pLAYER01_USER)
// L2050
PlayerGroupSingle(gv_pLAYER01_USER)
// L2137
PlayerGroupSingle(gv_pLAYER01_USER)
// L2139
PlayerGroupSingle(gv_pLAYER01_USER)
// L2569
PlayerGroupSingle(gv_pLAYER01_USER)
// L2629
PlayerGroupSingle(gv_pLAYER01_USER)
// L2712
PlayerGroupSingle(gv_pLAYER01_USER)
// L18212
PlayerGroupSingle(lv_p)
// L808
PlayerGroupSingle(gv_p01_USER)
// L870
PlayerGroupSingle(gv_p01_USER)
// L5133
PlayerGroupSingle(gv_p01_USER)
// L2118
PlayerGroupSingle(gv_p1_USER)
// L2550
PlayerGroupSingle(gv_p1_USER)
// L3063
PlayerGroupSingle(gv_p1_USER)
// L4293
PlayerGroupSingle(gv_p1_USER)
// L3224
PlayerGroupSingle(gv_p3_DOMINION_RED)
// L3225
PlayerGroupSingle(gv_p3_DOMINION_RED)
// L3226
PlayerGroupSingle(gv_p4_DOMINION_PURPLE)
// L3227
PlayerGroupSingle(gv_p3_DOMINION_RED)
// L3323
PlayerGroupSingle(gv_p5_DOMINION_GREY)
// L3333
PlayerGroupSingle(gv_p4_DOMINION_PURPLE)
// L3340
PlayerGroupSingle(gv_p3_DOMINION_RED)
// L3550
PlayerGroupSingle(gv_p2_RAYNOR_LIGHTBLUE)
// L3615
PlayerGroupSingle(gv_p2_RAYNOR_LIGHTBLUE)
// L3697
PlayerGroupSingle(gv_p2_RAYNOR_LIGHTBLUE)
// L954
PlayerGroupSingle(1)
// L958
PlayerGroupSingle(gv_p1_USER)
// L1608
PlayerGroupSingle(gv_p1_USER)
// L3320
PlayerGroupSingle(gv_p1_USER)
// L3325
PlayerGroupSingle(gv_p1_USER)
// L3330
PlayerGroupSingle(gv_p1_USER)
// L3337
PlayerGroupSingle(gv_p1_USER)
// L3345
PlayerGroupSingle(gv_p1_USER)
// L3352
PlayerGroupSingle(gv_p1_USER)
// L3360
PlayerGroupSingle(gv_p1_USER)
// L3367
PlayerGroupSingle(gv_p1_USER)
// L3178
PlayerGroupSingle(gv_p1_USER)
// L3179
PlayerGroupSingle(gv_p1_USER)
// L3180
PlayerGroupSingle(gv_p1_USER)
// L5749
PlayerGroupSingle(gv_p1_USER)
// L4763
PlayerGroupSingle(gv_p01_USER)
// L914
PlayerGroupSingle(gv_pLAYER01_USER)
// L1040
PlayerGroupSingle(gv_pLAYER01_USER)