GetPerkRank

From GECK
Jump to: navigation, search


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. Returns 0 if the player does not have the perk, otherwise returns an int with the rank starting at 1.

Syntax

[help]
(int) PlayerREF.GetPerkRank Target:perk 

Example

int iRank

let iRank := PlayerREF.GetPerkRank LordDeathChallengePerk

See Also