Difference between revisions of "GetNumFollowers"
Jump to navigation
Jump to search
imported>Rlilewis |
imported>TheNiceOne |
||
Line 9: | Line 9: | ||
; Walk through each follower and print reference to console | ; Walk through each follower and print reference to console | ||
set numAllies to | set numAllies to player.GetNumFollowers | ||
While numAllies > 0 | |||
set tempRef to player.GetNthFollower numAllies | let numAllies -= 1 | ||
PrintC "Follower: %n" tempRef | set tempRef to player.GetNthFollower numAllies | ||
PrintC "Follower: %n" tempRef | |||
Loop | |||
</pre> | </pre> | ||
Latest revision as of 03:45, 11 March 2011
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.
Example[edit | edit source]
; 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
Notes[edit | edit source]
- Companions engaged in combat are still classed as followers.