# Validate Unit Can Create Effect At Point
Grammar — Validate caster can create effect at point
Flags —Native
|Function
|Internal
# Arguments
unit
— Casterstring
<gamelink::Effect> — Effectpoint
— Point
Returns — int
native int UnitValidateEffectPoint(
unit inUnit,
string inEffect,
point inTarget,
);
# Related
Category: Environment / Effects / Internal
- Validate Player Can Create Effect At Point —
int
— PlayerValidateEffectPoint - Validate Player Can Create Effect On Unit —
int
— PlayerValidateEffectUnit - Validate Unit Can Create Effect At Point —
int
— UnitValidateEffectPoint - Validate Unit Can Create Effect On Unit —
int
— UnitValidateEffectUnit
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:3397
// Automatic Variable Declarations
// Implementation
return (UnitValidateEffectPoint(lp_caster, lp_effect, lp_point) == 0);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2893
// Automatic Variable Declarations
// Implementation
return (UnitValidateEffectPoint(lp_caster, lp_effect, lp_point) == 0);
}