Difference between revisions of "HasPerk - Actor"
Jump to navigation
Jump to search
imported>Vitamant m (1 revision: Clobber re-import by Henning) |
imported>Qazaaq |
||
Line 19: | Line 19: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Does the player have the super perk? | ; Does the player have the super perk? | ||
Function Example(Actor akActor, Perk akPerk) | |||
If (akActor.HasPerk(akPerk)) | |||
Debug.Trace("The actor " + akActor + " has the " + akPerk + " perk.") | |||
EndIf | |||
EndFunction | |||
</source> | </source> | ||
== See Also == | == See Also == | ||
*[[Actor Script]] | *[[Actor Script]] |
Revision as of 01:48, 13 June 2016
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?
Function Example(Actor akActor, Perk akPerk)
If (akActor.HasPerk(akPerk))
Debug.Trace("The actor " + akActor + " has the " + akPerk + " perk.")
EndIf
EndFunction