# Player Can Create Effect On Unit

Grammar — Player player can create effect on target
FlagsFunction

Returns true if the specified player can execute the specified effect on the specified unit.

# Arguments

  • int — Player
  • string [ gamelink::Effect ] — Effect
  • unit — Target

Returns — bool

bool libNtve_gf_PlayerCanCreateEffectOnUnit(
	int lp_player,
	string lp_effect,
	unit lp_target,
);

Category: Environment / Effects

# Examples

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L16873
libNtve_gf_PlayerCanCreateEffectOnUnit(1, "TargetIsBeingDraggedByDehaka", lv_targetUnit)