GetNumFollowers

From The Elder Scrolls Construction Set Wiki

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.

[edit] Example

; Walk through each follower and print reference to console

set numAllies to (player.GetNumFollowers - 1)
	
Label 1
set tempRef to player.GetNthFollower numAllies
PrintC "Follower: %n" tempRef
	
set numAllies to numAllies - 1
	
if numAllies >= 0
   Goto 1
endif

[edit] Notes

  • Companions engaged in combat are still classed as followers.

[edit] See Also

Personal tools