Background for Fallout 4
Member of the CommonArrayFunctions script
intfunctionFindInReferenceAliasArray(ObjectReferenceObjectToCheck, ReferenceAlias[]ArrayToCheck)Global

Description

Wiki Description

Finds the reference in the alias array and returns the index (or < 0 if not found)

Documentation Comment

kmk


Caveats


Parameters

ObjectReferenceObjectToCheck

CK Wiki Description

The reference to look for

ReferenceAlias[]ArrayToCheck

CK Wiki Description

The aliases to look in


Examples

int index = CommonArrayFunctions.FindInReferenceAliasArray(Dogmeat, SettlerAliases)
if index >= 0
  SettlerAliases[index].ForceRefTo(None) ; Pop dogmeat out of the alias
endIf

Auto-Generated Example

ObjectReference myObjectReference__ObjectToCheck
ReferenceAlias[] myReferenceAliasArray__ArrayToCheck

int returnedValue = CommonArrayFunctions.FindInReferenceAliasArray(myObjectReference__ObjectToCheck, myReferenceAliasArray__ArrayToCheck)

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.