FindInReferenceAliasArray - CommonArrayFunctions

Revision as of 15:55, 1 December 2015 by imported>Plplecuyer (Created page with "Category:Scripting Category:Papyrus '''Member of:''' CommonArrayFunctions Script Finds the reference in the alias array and returns the index (or < 0 if not found) ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: CommonArrayFunctions Script

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

SyntaxEdit

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

ParametersEdit

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

Return ValueEdit

  • 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.

ExamplesEdit

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

See AlsoEdit