SetPerkRank

From GECK
Jump to: navigation, search


A function added by the Lutana NVSE plugin, now part of the JIP NVSE Plugin.

Description

Sets the rank of the specified Perk on the calling actor, or adds it at a specified rank if they don't have it.

  • When called on the player character, this function will set/add the perk rank on the player, unless the optional argument forTeammates is non-zero, in which case it will set/add 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

[help]
reference.SetPerkRank perk:form rank:int forTeammates:1/0

Example

actorRef.SetPerkRank DemolitionExpert 2
player.SetPerkRank DemolitionExpert 2 1 

See Also