Difference between revisions of "HasKeyword - Form"
Jump to navigation
Jump to search
imported>DiemCarpe |
imported>DiemCarpe m (→Examples) |
||
Line 24: | Line 24: | ||
; 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 | ; Note: You do not need to state the function's syntax in your script | ||
; to be able to use the function | ; 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 |
Revision as of 14:34, 16 September 2012
Member of: Form Script
Checks to see if the specified keyword is attached to this form.
Syntax
bool Function HasKeyword(Keyword akKeyword) native
Parameters
- akKeyword: The Keyword to query for.
Return Value
Whether this form has the specified keyword or not. If the form doesn't support keywords, it will always return false.
Examples
Scriptname ExampleScript
Keyword Property DoomKeywordProperty auto
; Does this object have a doom keyword?
if (NiceSwordProperty.HasKeyword(DoomKeywordProperty))
; Note: You do not need to state the function's syntax in your script
; to be able to use the function
Debug.Trace("The nice sword is a doom sword")
endIf