# Unit Can Create Effect At Point

Grammarcaster can create effect at point
FlagsFunction

Returns true if the specified unit can execute the specified effect at the specified point.

# Arguments

  • unit — Caster
  • string<gamelink::Effect> — Effect
  • point — Point

Returns — bool

bool libNtve_gf_UnitCanCreateEffectAtPoint(
	unit lp_caster,
	string lp_effect,
	point lp_point,
);

Category: Environment / Effects

# Examples

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:539

        autoB8FABB6C_var = UnitGroupUnitFromEnd(autoB8FABB6C_g, autoB8FABB6C_u);
        if (autoB8FABB6C_var == null) { break; }
        if ((libNtve_gf_UnitCanCreateEffectAtPoint(autoB8FABB6C_var, "TranslateUnit", PointWithOffsetPolar(UnitGetPosition(autoB8FABB6C_var), lv_distance, lp_direction)) == true)) {
            UnitGroupAdd(lv_platformUnits, autoB8FABB6C_var);
            UnitGroupAdd(lv_friendlyGroundUnits, autoB8FABB6C_var);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2mapMapScript.galaxy:539

        autoB8FABB6C_var = UnitGroupUnitFromEnd(autoB8FABB6C_g, autoB8FABB6C_u);
        if (autoB8FABB6C_var == null) { break; }
        if ((libNtve_gf_UnitCanCreateEffectAtPoint(autoB8FABB6C_var, "TranslateUnit", PointWithOffsetPolar(UnitGetPosition(autoB8FABB6C_var), lv_distance, lp_direction)) == true)) {
            UnitGroupAdd(lv_platformUnits, autoB8FABB6C_var);
            UnitGroupAdd(lv_friendlyGroundUnits, autoB8FABB6C_var);