Difference between revisions of "HasPerk - Actor"

No change in size ,  01:50, 13 June 2016
no edit summary
imported>Qazaaq
imported>Qazaaq
Line 18: Line 18:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
; Does the actor have the perk?
Function Example(Actor akActor, Perk akPerk)
Function Example(Actor akActor, Perk akPerk)
{Does the actor have the perk?}
   If (akActor.HasPerk(akPerk))
   If (akActor.HasPerk(akPerk))
     Debug.Trace("The actor " + akActor + " has the " + akPerk + " perk.")
     Debug.Trace("The actor " + akActor + " has the " + akPerk + " perk.")
Anonymous user