# Power Level

Grammar — Power level for inPlayer at inPosition with inType
FlagsNative | Function

Returns the power level provided to a player at the specified point.

# Arguments

  • int — Player
  • point — Position
  • string — Type

Returns — int

native int PowerLevel(
	int inPlayer,
	point inPos,
	string inLink,
);

Category: Environment / Creep And Power

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L2198
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(25)), "PowerSource")
// L2232
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(17)), "PowerSource")
// L2266
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(10)), "PowerSource")
// L2300
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(162)), "PowerSource")
// L2334
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(11)), "PowerSource")
// L2368
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(199)), "PowerSource")
// L3038
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(43)), "PowerSource")
// L3080
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(563)), "PowerSource")
// L3124
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(179)), "PowerSource")
// L1218
PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(88)), "PowerSource")
// L1263
PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(173)), "PowerSource")
// L1313
PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(287)), "PowerSource")
// L1362
PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(285)), "PowerSource")
// L1406
PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(29)), "PowerSource")
// L1446
PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(170)), "PowerSource")
// L1486
PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(174)), "PowerSource")
// L2198
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(25)), "PowerSource")
// L2232
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(17)), "PowerSource")
// L2266
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(10)), "PowerSource")
// L2300
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(162)), "PowerSource")
// L2334
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(11)), "PowerSource")
// L2368
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(199)), "PowerSource")
// L3038
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(43)), "PowerSource")
// L3080
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(563)), "PowerSource")
// L3124
PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(179)), "PowerSource")
// L1218
PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(88)), "PowerSource")
// L1263
PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(173)), "PowerSource")
// L1313
PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(287)), "PowerSource")
// L1362
PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(285)), "PowerSource")
// L1406
PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(29)), "PowerSource")
// L1446
PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(170)), "PowerSource")
// L1486
PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(174)), "PowerSource")
// L2532
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 1)), "PowerSource")
// L2536
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 2)), "PowerSource")
// L3768
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 1)), "PowerSource")
// L3768
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 2)), "PowerSource")
// L1349
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(457)), "PowerSource")
// L1349
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(439)), "PowerSource")
// L1349
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(538)), "PowerSource")
// L2189
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(gv_warpGate01), "PowerSource")
// L2197
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(gv_warpGate02), "PowerSource")
// L2205
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(gv_warpGate03), "PowerSource")
// L2481
PowerLevel(gv_pLAYER_08_NERAZIM, PointFromId(1477), "PowerSource")
// L2481
PowerLevel(gv_pLAYER_08_NERAZIM, PointFromId(1478), "PowerSource")
// L2586
PowerLevel(gv_pLAYER_09_TALDARIM, PointFromId(1479), "PowerSource")
// L2586
PowerLevel(gv_pLAYER_09_TALDARIM, PointFromId(1480), "PowerSource")
// L2689
PowerLevel(gv_pLAYER_10_PURIFIER, PointFromId(1481), "PowerSource")
// L2689
PowerLevel(gv_pLAYER_10_PURIFIER, PointFromId(1482), "PowerSource")
// L1775
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(auto24921BCC_var), "PowerSource")
// L1816
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(autoC012A80F_var), "PowerSource")
// L2532
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 1)), "PowerSource")
// L2536
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 2)), "PowerSource")
// L3768
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 1)), "PowerSource")
// L3768
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 2)), "PowerSource")
// L1349
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(457)), "PowerSource")
// L1349
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(439)), "PowerSource")
// L1349
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(538)), "PowerSource")
// L2189
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(gv_warpGate01), "PowerSource")
// L2197
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(gv_warpGate02), "PowerSource")
// L2205
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(gv_warpGate03), "PowerSource")
// L2481
PowerLevel(gv_pLAYER_08_NERAZIM, PointFromId(1477), "PowerSource")
// L2481
PowerLevel(gv_pLAYER_08_NERAZIM, PointFromId(1478), "PowerSource")
// L2586
PowerLevel(gv_pLAYER_09_TALDARIM, PointFromId(1479), "PowerSource")
// L2586
PowerLevel(gv_pLAYER_09_TALDARIM, PointFromId(1480), "PowerSource")
// L2689
PowerLevel(gv_pLAYER_10_PURIFIER, PointFromId(1481), "PowerSource")
// L2689
PowerLevel(gv_pLAYER_10_PURIFIER, PointFromId(1482), "PowerSource")
// L1775
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(auto24921BCC_var), "PowerSource")
// L1816
PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(autoC012A80F_var), "PowerSource")