Osiris/API/Follow

From Divinity Engine Wiki
Revision as of 14:17, 19 March 2021 by Tinkerer (talk | contribs) (Updated for bg3)
Jump to: navigation, search
Full Definition(s)
  • call Follow((CHARACTER)_Follower, (CHARACTER)_Leader)
Description

Makes _Follower start following _Leader.

Notes
  • Preferably use PROC_Follow from the Shared mod. This will ensure that _Follower's following behaviour gets suspended when it enters combat, and resumed afterwards.
  • Use StopFollow to stop the following behaviour (or PROC_StopFollow if you used PROC_Follow).
  • Make sure to stop following a previous character before starting to follow a new one. PROC_Follow will automatically take care of this.
  • Note that this call does not turn _Character in a so-called party follower or minion, which is done via AddPartyFollower. The difference between "regular followers" (as created by this routine) and party followers/minions is that regular followers simply follow any other character around (you can have one NPC follow another one, if you want), while party followers/minions always follow a player-controlled character and can be partially controlled by the user that controls this player character.
See Also