Background for Fallout 4
Member of the CommonArrayFunctions script
boolfunctionCheckLocationAgainstLocationAliasArray(LocationObjectToCheck, LocationAlias[]ArrayToCheck, boolreturnValueIfArrayIsEmpty=false, boolmatchIfChildLocation=false)Global

Description

Wiki Description

Loops through an array of location aliases and checks if the specified location in in any of them. (Or a child of one of them if matchIfChildLocation)

Documentation Comment

kmk


Parameters

  1. LocationObjectToCheck

    CK Wiki Description

    The Location we are looking for

  2. LocationAlias[]ArrayToCheck

    CK Wiki Description

    The LocationAlias array we are looking in

  3. boolreturnValueIfArrayIsEmpty=false

    CK Wiki Description

    If the array is empty, return this.

    • Default:False
  4. boolmatchIfChildLocation=false

    CK Wiki Description

    If true, the location will match if it is a child of a location in an alias.

    • Default:False

Examples

if CommonArrayFunctions.CheckLocationAgainstLocationAliasArray(PlayerLocation, QuestLocationAliases)
   Debug.Trace("The player is in one of the quest locations! (But not a child location)")
endIf

Auto-Generated Example

Location myLocation__ObjectToCheck
LocationAlias[] myLocationAliasArray__ArrayToCheck
bool myBool__returnValueIfArrayIsEmpty
bool myBool__matchIfChildLocation

bool returnedValue = CommonArrayFunctions.CheckLocationAgainstLocationAliasArray(myLocation__ObjectToCheck, myLocationAliasArray__ArrayToCheck, myBool__returnValueIfArrayIsEmpty, myBool__matchIfChildLocation)

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.