# Validate Player Can Create Effect On Unit
Grammar — Validate player caster can create effect on unit
Flags —Native
|Function
|Internal
# Arguments
int
— Playerstring
<gamelink::Effect> — Effectunit
— Target
Returns — int
native int PlayerValidateEffectUnit(
int inPlayer,
string inEffect,
unit 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:3391
// Automatic Variable Declarations
// Implementation
return (PlayerValidateEffectUnit(lp_player, lp_effect, lp_target) == 0);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2887
// Automatic Variable Declarations
// Implementation
return (PlayerValidateEffectUnit(lp_player, lp_effect, lp_target) == 0);
}