# Validate Player Can Create Effect On Unit

Grammar — Validate player caster can create effect on unit
FlagsNative | Function | Internal

# Arguments

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

Returns — int

native int PlayerValidateEffectUnit(
	int inPlayer,
	string inEffect,
	unit inTarget,
);

Category: Environment / Effects / Internal

# Examples

# mods/core.sc2mod

NativeLib.galaxy

// L3391
PlayerValidateEffectUnit(lp_player, lp_effect, lp_target)
// L2887
PlayerValidateEffectUnit(lp_player, lp_effect, lp_target)