HasPerk - Actor

Member of: Actor Script

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 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

See AlsoEdit