Difference between revisions of "HasKeyword - Form"
Jump to navigation
Jump to search
m
Removed erroneous note. Native functions don't have to be defined in any script.
imported>DiemCarpe m (→Examples) |
imported>JustinOther m (Removed erroneous note. Native functions don't have to be defined in any script.) |
||
Line 18: | Line 18: | ||
== Examples == | == Examples == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
ScriptName ExampleScript Extends ObjectReference | |||
Keyword Property DoomKeywordProperty | Keyword Property DoomKeywordProperty Auto | ||
; Does | Event OnItemAdded(Form akBaseItem, Int aiItemCount, ObjectReference akFormReference, ObjectReference akSourceContainer) | ||
If akBaseItem.HasKeyword(DoomKeywordProperty) ; Does the added object have a doom keyword? | |||
Debug.Trace("The added sword is a doom sword") | |||
EndIf | |||
EndEvent | |||
</source> | </source> | ||
== See Also == | == See Also == | ||
*[[Form Script]] | *[[Form Script]] |