# 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.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3391

    // Automatic Variable Declarations
    // Implementation
    return (PlayerValidateEffectUnit(lp_player, lp_effect, lp_target) == 0);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2887

    // Automatic Variable Declarations
    // Implementation
    return (PlayerValidateEffectUnit(lp_player, lp_effect, lp_target) == 0);
}