X Tutup
×
Create a new article
Write your page title here:
We currently have 92,695 articles on Fallout Wiki. Type your article name above or click on one of the titles below and start writing!



Fallout Wiki
92,695Articles
☢  Independent Fallout Wiki Resources  ☢

FindInReferenceAliasArray - CommonArrayFunctions

Resource:Creation Kit > FindInReferenceAliasArray - CommonArrayFunctions


Member of: Resource:Creation Kit/CommonArrayFunctions Script

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

Syntax

int Function FindInReferenceAliasArray(ObjectReference ObjectToCheck, ReferenceAlias[] ArrayToCheck) global

Parameters

  • ObjectToCheck: The reference to look for
  • ArrayToCheck: The aliases to look in

Return Value

  • Index of the alias containing the object.
  • < 0 if the object was none, the array was none, the array was empty, or the object wasn't found.

Examples

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

See Also

X Tutup