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
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
- Location
- Location.GetKeywordData(...)
- Form.HasKeyword(...)
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
