Background for Starfield
Member of the Actor script
voidfunctionAddPerk(PerkakPerk, boolabNotify=false)Native

Description

Wiki Description

Adds the specified Perk to this actor. This function now works on both the player and NPCs.

Documentation Comment

Adds the specified perk to this actor


Parameters

  1. PerkakPerk

    CK Wiki Description

    The Perk to add to this actor.

  2. boolabNotify=false

    CK Wiki Description

    Display a message if true and the perk is being added to the player.

    • Default = false

Examples

; Adds the awesome perk to the player
Game.GetPlayer().AddPerk(AwesomePerk)

Auto-Generated Example

Perk myPerk__akPerk
bool myBool__abNotify

myActor__toCallFunctionOn.AddPerk(myPerk__akPerk, myBool__abNotify)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.