Difference between revisions of "GetPerkRank"
Jump to navigation
Jump to search
imported>Odessa (created) |
imported>Odessa (-1 return is only for invalid usage) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = NVSE | |origin = NVSE | ||
|summary = Returns the rank of the specified perk | |summary = Returns the rank of the specified perk. This function may only be called on the player. Returns <b>-1</b> if the perk argument or [[calling reference]] is null. Added by NVSE 4.5. | ||
|name = GetPerkRank | |name = GetPerkRank |
Latest revision as of 05:43, 25 January 2015
< [[::Category:Functions|Category:Functions]]
A function added by the New Vegas Script Extender.
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. Added by NVSE 4.5.
Syntax
(int) PlayerREF.GetPerkRank Target:perk
Example
int iRank let iRank := PlayerREF.GetPerkRank LordDeathChallengePerk
See Also
- GetAltPerkRank (for companion perks)
- HasPerk
- AddPerk