Difference between revisions of "HasKeyword - Form"

Jump to navigation Jump to search
183 bytes added ,  14:26, 16 September 2012
imported>Rhavlovick
m (1 revision: Clobber re-import by Henning)
 
imported>DiemCarpe
Line 18: Line 18:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
Scriptname ExampleScript
Keyword Property DoomKeywordProperty auto
; Does this object have a doom keyword?
; Does this object have a doom keyword?
if (NiceSwordProperty.HasKeyword(DoomKeywordProperty))
if (NiceSwordProperty.HasKeyword(DoomKeywordProperty))
; Note: You do not need to state the write the function's syntax in your script
; to be able to use the function.
   Debug.Trace("The nice sword is a doom sword")
   Debug.Trace("The nice sword is a doom sword")
endIf
endIf
Anonymous user

Navigation menu