Background for Fallout 4
Member of the Location script
voidfunctionSetKeywordData(KeywordakKeyword, floatafData)Native

Description

Wiki Description

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

Documentation Comment

Sets the specified keyword's data on the location


Caveats

CK Wiki - Notes

  • 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

Parameters

KeywordakKeyword

CK Wiki Description

The Keyword to query for.

floatafData

CK Wiki Description

The data to associate with the keyword.


Examples

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

Auto-Generated Example

Keyword myKeyword__akKeyword
float myFloat__afData

myLocation__toCallFunctionOn.SetKeywordData(myKeyword__akKeyword, myFloat__afData)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.