Background for Fallout 4
Member of the Actor script
boolfunctionHasPerk(PerkakPerk)Native

Description

Wiki Description

Checks to see if this actor has the given Perk.

Documentation Comment

Checks to see if this actor has the given Perk


Caveats


Parameters

PerkakPerk

CK Wiki Description

The Perk to check.


Examples

; Does the actor have the perk?

Function Example(Actor akActor, Perk akPerk)
  If (akActor.HasPerk(akPerk))
    Debug.Trace("The actor " + akActor + " has the " + akPerk + " perk.")
  Else
    Debug.Trace("The actor " + akActor + " does not have the " + akPerk + " perk.")
  EndIf
EndFunction

Auto-Generated Example

Perk myPerk__akPerk

bool returnedValue = myActor__toCallFunctionOn.HasPerk(myPerk__akPerk)

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.