GetPerkRank
From GECK
A function added by the New Vegas Script Extender.
Contents
Description
Returns the rank of the specified Perk. This function may only be called on the player. Returns -1 if the perk argument or calling reference is null. Returns 0 if the player does not have the perk, otherwise returns an int with the rank starting at 1.
Syntax
(int) PlayerREF.GetPerkRank Target:perk
Example
int iRank let iRank := PlayerREF.GetPerkRank LordDeathChallengePerk
See Also
- GetAltPerkRank (for companion perks)
- HasPerk
- AddPerk