HasPerk
From GECK
A function included in the GECK for Fallout 3.
Contents
Description
Returns whether or not the calling Actor has the specified Perk.
- When called on the Player character, this function will return whether the player has the perk, unless the optional argument forTeammates is non-zero, in which case it will return whether the player's teammates have the perk.
- 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.
- When called via the console, this function will also print the current perk rank.
Syntax
(hasPerk:0/1) ActorRef.HasPerk perk:form forTeammates:1/0
Example
set bHasGunNut to player.HasPerk GunNut
Returns whether or not the Player has the "Gun Nut" perk.
set bHasGunNut to player.HasPerk GunNut 1
Returns whether or not the Player's teammates have the "Gun Nut" perk.
set bHasGunNut to ActorRef.HasPerk GunNut
Returns whether or not the ActorRef has the "Gun Nut" perk.