Background for Starfield

Location


Inheritance Tree

No indexed scripts extend this script.

Structs
Properties
Events
Functions
voidfunctionAddKeyword(KeywordakKeyword)Native

Adds the specified keyword to the location

voidfunctionAddLinkedLocation(LocationakLoc, KeywordakKeyword)Native

Adds a link between this location and the given one under the given keyword.

intfunctionCountActors(KeywordapRequiredLinkedRefKeyword=NONE, KeywordapExcludeLinkedRefKeyword=NONE)Native

[DEV SERVER] Loading description...

boolfunctionDisableSpaceTravelToAllExcept(QuestakQuest, boolabAddLocation=true)Native

Disables player space travel to all locations except the specified location. Can call on multiple locations.

boolfunctionEnableSpaceTravel(QuestakQuest, boolabEnable=true)Native

Enables player space travel to the specified location.

Actor[]functionGetActors(KeywordapRequiredLinkedRefKeyword=NONE, KeywordapExcludeLinkedRefKeyword=NONE)Native

Get an array of all instantiated Actors (across all process levels) who belong to this location.
Can optionally specify a keyword for a linkedref that they must have (apRequiredLinkedRefKeyword), and/or a linkedref keyword they must NOT have (apExcludeLinkedRefKeyword).
(Presence or absence of the keywordless linkedref cannot be checked.)

Location[]functionGetAllLinkedLocations(KeywordakKeyword)Native

Returns an array of all locations linked to this one under the given keyword.

PlanetfunctionGetCurrentPlanet()Native

Returns this location's planet

floatfunctionGetKeywordData(KeywordakKeyword)Native

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

intfunctionGetMinLevel()Native

Gets this location's minimum level

intfunctionGetMaxLevel()Native

Gets this location's maximum level

Location[]functionGetParentLocations(KeywordapKeyword=NONE)Native

Gets this location's parent locations
Can optionally specify a keyword that the parent location must have

intfunctionGetRefTypeAliveCount(LocationRefTypeakRefType)Native

Obtains the number of alive enabled references matching the specified reference type in this location.

intfunctionGetRefTypeDeadCount(LocationRefTypeakRefType)Native

Obtains the number of dead enabled references matching the specified reference type in this location.

floatfunctionGetValue(ActorValueakActorValue)Native

Gets an actor value on location

boolfunctionHasCommonParent(LocationakOther, KeywordakFilter=NONE)Native

Returns if this location and the other have a common parent (filtering with a keyword, if provided). If the locations are identical, the function will return false.

boolfunctionHasEverBeenExplored()Native

Returns if this location has ever been explored

boolfunctionHasRefType(LocationRefTypeakRefType)Native

Returns if this location has any unreserved refs with the specified LocationRefType.

boolfunctionIsExplored()Native

Returns whether this location is flagged as "explored" or not

boolfunctionIsChild(LocationakOther)Native

Returns true if the other location is a child of this one. If they are the same location, the function returns false.

boolfunctionIsLinkedLocation(LocationakLocation, KeywordakKeyword)Native

Checks for a link between this location and the given one under the given keyword.

boolfunctionIsLoaded()Native

Returns if this location is loaded or not.

boolfunctionIsSameLocation(LocationakOtherLocation, KeywordakKeyword=NONE)

Returns true if the calling location is the same as the supplied location. Or, if an optional keyword is supplied it also returns true if the locations share a parent with that keyword, or one of the locations has the keyword and is a parent of the other.

voidfunctionModifyKeywordData(KeywordakKeyword, floatafData)

Modifies the data attached to the specified keyword on this location by adding the passed-in data to the current value, but as a single function call so it is thread-safe.

voidfunctionRemoveKeyword(KeywordakKeyword)Native

Removed the specified keyword from the location

voidfunctionRemoveLinkedLocation(LocationakLoc, KeywordakKeyword)Native

Removes the link between this location and the given one under the given keyword.

voidfunctionReset()Native

Flags all encounter zones and interior cells associated with this location for forced reset.

voidfunctionSetKeywordData(KeywordakKeyword, floatafData)Native

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

voidfunctionSetExplored(boolabExplored=true)Native

Sets this location as explored or not

voidfunctionSetFactionOwner(FactionakFaction)Native

Set the given faction as the faction owner for this location

voidfunctionSetMinLevel(intaiMinLevel)Native

Sets this encounter zone's minimum level

voidfunctionSetMaxLevel(intaiMaxLevel)Native

Sets this encounter zone's maximum level

voidfunctionSetNeverResets(boolabFlag=true)Native

Forces the value of the never reset flag on this location

voidfunctionSetValue(ActorValueakActorValue, floatafValue)Native

Sets an actor value on location

voidfunctionModValue(ActorValueakActorValue, floatafAmount)
Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.