# Power Is Provided By
Grammar — Power is provided for inPlayer at inPosition with inType by inSource, with inMinLevel
Flags —Native
|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
— Playerpoint
— Positionstring
— Typeunit
— Sourceint
— Minimum Level
Returns — bool
native bool PowerIsProvidedBy(
int inPlayer,
point inPos,
string inLink,
unit inSource,
int inMinLevel,
);
# Related
Category: Environment / Creep And Power
- [F] —
void
— Set Creep Speed — ( CreepSetSpeed ) - [F] —
void
— Modify Creep — ( CreepModify ) - [F] —
bool
— Creep Is Present — ( CreepIsPresent ) - [F] —
int
— Creep Adjacent — ( CreepAdjacent ) - [F] —
int
— FunctionDef/Name/lib_Ntve_00000250 — ( PowerLevel ) - [F] —
int
— Power Level — ( PowerLevel ) - [F] —
bool
— FunctionDef/Name/lib_Ntve_00000251 — ( PowerIsProvidedBy ) - [F] —
bool
— Power Is Provided By — ( PowerIsProvidedBy )
# Examples
# campaigns/void.sc2campaign
// L724
PowerIsProvidedBy(lp_player, lp_targetLoc, "PowerSource", lv_warpPrismUnit, 1)
// L724
PowerIsProvidedBy(lp_player, lp_targetLoc, "PowerSource", lv_warpPrismUnit, 1)