qwertypol012 Posted January 19, 2021 Share Posted January 19, 2021 First, do HasPerk and HasSpell functions always work unconditionally? I mean, i want to know whether using HasPerk will always work (both to player or NPC) to check whether an actor has a specific perk or not; the same question also applies to HasSpell. Or instead, is there some exceptions (which make them not working)? Why i asked this? Because I've been using these in my mod and I'm not sure whether they're actually working or not (especially for HasSpell). Sometimes i felt that they're not actually checking the perk or the spell i wanted them to check (especially the HasSpell). Secondly, is it fine to use RemovePerk and RemoveSpell to the player even if the player doesn't have the perk or spell to be removed? Will it cause an issue? Link to comment Share on other sites More sharing options...
Evangela Posted January 19, 2021 Share Posted January 19, 2021 All of the bool functions work this way, so yes. RemoveSpell will simply return false, but RemovePerk might send an error to the log because it has no return value to fall back on. Link to comment Share on other sites More sharing options...
Recommended Posts