HasPerk - Actor

From the Fallout4 CreationKit Wiki
Revision as of 15:27, 18 October 2011 by imported>Vitamant (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script (Papyrus)

Checks to see if this actor has the given Perk.

Syntax

bool Function HasPerk(Perk akPerk) native

Parameters

  • akPerk: The Perk to check.

Return Value

Whether the actor has the given Perk or not.

Examples

; Does the player have the super perk?
if (Game.GetPlayer.HasPerk(SuperPerk))
  Debug.Trace("The player has the super perk")
endIf

See Also