# 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
- [F] —
int
— Validate Player Can Create Effect At Point — ( PlayerValidateEffectPoint ) - [F] —
int
— Validate Player Can Create Effect On Unit — ( PlayerValidateEffectUnit ) - [F] —
int
— Validate Unit Can Create Effect At Point — ( UnitValidateEffectPoint ) - [F] —
int
— Validate Unit Can Create Effect On Unit — ( UnitValidateEffectUnit )
# Examples
# mods/core.sc2mod
// L3391
PlayerValidateEffectUnit(lp_player, lp_effect, lp_target)
// L2887
PlayerValidateEffectUnit(lp_player, lp_effect, lp_target)