HasPerkRank
From GECK
A function added by the Lutana NVSE plugin, now part of the JIP NVSE Plugin.
Contents
Description
Returns the rank of the specified perk on the calling actor, or 0 if the actor does not have the perk.
- When called on the player character, this function will return the perk rank on the player, unless the optional argument forTeammates is non-zero, in which case it will return the perk rank for teammates.
- When called on any actor other than the player, this function will work correctly only if the uNPCPerks optional JIP LN feature is toggled in Data\NVSE\plugins\jip_nvse.ini.
Syntax
(rank:int) reference.HasPerkRank perk:form forTeammates:1/0
Example
set iRank to actorRef.HasPerkRank Cowboy
set iRank to player.HasPerkRank Cowboy 1
Notes
- For Command Extender, using the optional alt parameter will always return 0. The teammate perk list was added in New Vegas.