GetNumFollowers

Revision as of 04:45, 11 March 2011 by imported>TheNiceOne (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A command for Oblivion Script Extender

Syntax:

(numFollowers:short) [ref.]GetNumFollowers

Returns the number of actors currently following the calling actor. Summoned creatures are excluded.

ExampleEdit

; Walk through each follower and print reference to console

set numAllies to player.GetNumFollowers
	
While numAllies > 0
	let numAllies -= 1
	set tempRef to player.GetNthFollower numAllies
	PrintC "Follower: %n" tempRef
Loop	

NotesEdit

  • Companions engaged in combat are still classed as followers.

See AlsoEdit