Immunity to critical hits and sneak attacks

Did I understand correctly that immunity to critical hits in NWN2 doesn’t give you immunity to sneak attacks, unlike PnP rules? So when I want to add proper immunity to crits, I should also specify explicitly immunity to SA. Am I right?

Quote from PHB 3.5:

Creatures with concealment, creatures without discernible anatomies, and creatures immune to extra damage from critical hits are all immune to sneak attacks.

So in NWN2 it’d look something like this:

effect eCrit = EffectImmunity(IMMUNITY_TYPE_CRITICAL_HIT);
effect eSneak = EffectImmunity(IMMUNITY_TYPE_SNEAK_ATTACK);
effect eLink = EffectLinkEffects(eCrit, eSneak);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oPC, fDur);

yep, but i’m not sure how our Concealment effect handles crits/sneaks

I’d guess that it’s, again, a separate effect.

Concealment (Both Range & Mellee) do not give immunity to Crit / Sneak attack. (If you mean the functions themselves)