Difference between revisions of "GetNumFollowers"

Jump to navigation Jump to search
364 bytes added ,  15:56, 15 March 2009
no edit summary
imported>DragoonWraith
(not a record variable function)
imported>Rlilewis
Line 4: Line 4:
  (numFollowers:short) [''ref.'']GetNumFollowers
  (numFollowers:short) [''ref.'']GetNumFollowers
Returns the number of actors currently following the calling actor. Summoned creatures are excluded.
Returns the number of actors currently following the calling actor. Summoned creatures are excluded.
==Example==
<pre>
; 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
</pre>
==Notes==
* Companions engaged in combat are still classed as followers.


==See Also==
==See Also==
Anonymous user

Navigation menu