HasPerk - Actor

Revision as of 23:33, 16 February 2012 by imported>Ingevi (Added parentheses to Game.GetPlayer)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Actor Script (Papyrus)

Checks to see if this actor has the given Perk.

SyntaxEdit

bool Function HasPerk(Perk akPerk) native

ParametersEdit

  • akPerk: The Perk to check.

Return ValueEdit

Whether the actor has the given Perk or not.

ExamplesEdit

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

See AlsoEdit