HasKeyword - Form: Difference between revisions

Jump to navigation Jump to search
297 bytes added ,  2 December 2014
→‎Examples: just another example
imported>JustinOther
m (Removed erroneous note. Native functions don't have to be defined in any script.)
imported>Terra Nova2
(→‎Examples: just another example)
Line 27: Line 27:
EndIf
EndIf
EndEvent
EndEvent
;Check if the current location has a keyword.
Keyword property LocTypeHouse auto
Bool Function CurrentLocationHasKeyword()
        if Game.GetPlayer().GetCurrentLocation().HasKeyword(LocTypeHouse)
                return true
        else
                return false
        endif
EndFunction
</source>
</source>


== See Also ==
== See Also ==
*[[Form Script]]
*[[Form Script]]
Anonymous user

Navigation menu