SetKeywordData - Location

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Location Script

Sets the data attached to the specified keyword on this location.

Syntax[edit | edit source]

Function SetKeywordData(Keyword akKeyword, float afData) native

Parameters[edit | edit source]

  • akKeyword: The Keyword to query for.
  • afData: The data to associate with the keyword.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Set the data on the Cost keyword
MyHouseProperty.SetKeywordData(CostKeywordProperty, 100)

Notes[edit | edit source]

  • You CAN set keyword data on locations which do not have that keyword in the master file. This may be confusing. Here is an example:
    • If a location does not have a keyword, and you set keyword data on it (to 1 for example) then:
      • LocationHasKeyword condition will return false and
      • GetKeywordDataForLocation for that keyword will return 1

See Also[edit | edit source]