GetNthAlias - Quest

From the CreationKit Wiki
Revision as of 17:31, 24 November 2013 by imported>Jbezorg
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Assuming the code below is a quest script getting it's own aliases.

int idx  = self.GetNumAliases()
while idx > 0
	idx -= 1
	Alias nthAlias = self.GetNthAlias(idx) as Alias

	; LocationAlias or ReferenceAlias
	if nthAlias
		; do stuff
	endIf
endWhile