# Power Is Provided By

Grammar — Power is provided for inPlayer at inPosition with inType by inSource, with inMinLevel
FlagsNative | Function

Returns true if power is provided to a point by a specific unit. Note: The Minimum Power parameter should not be set past 1, unless you have custom units that provide more than a single power level.

# Arguments

  • int — Player
  • point — Position
  • string — Type
  • unit — Source
  • int — Minimum Level

Returns — bool

native bool PowerIsProvidedBy(
	int inPlayer,
	point inPos,
	string inLink,
	unit inSource,
	int inMinLevel,
);

Category: Environment / Creep And Power

# Examples

# campaigns/void.sc2campaign

MapScript.galaxy

// L724
PowerIsProvidedBy(lp_player, lp_targetLoc, "PowerSource", lv_warpPrismUnit, 1)
// L724
PowerIsProvidedBy(lp_player, lp_targetLoc, "PowerSource", lv_warpPrismUnit, 1)