GetNthAlias - Quest

From the CreationKit Wiki
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