Difference between revisions of "Osiris/API/Follow"

From Divinity Engine Wiki
Jump to: navigation, search
(Updated for bg3)
(Blanked the page)
 
Line 1: Line 1:
===== Full Definition(s) =====
 
* call  '''Follow'''(''(CHARACTER)'''''_Follower''', ''(CHARACTER)'''''_Leader''')
 
  
===== Description =====
 
Makes '''_Follower''' start following '''_Leader'''.
 
 
===== Notes =====
 
* Preferably use [[Osiris/Shared/PROC_Follow|PROC_Follow]] from the Shared mod. This will ensure that '''_Follower''''s following behaviour gets suspended when it enters combat, and resumed afterwards.
 
* Use [[Osiris/API/StopFollow|StopFollow]] to stop the following behaviour (or [[Osiris/Shared/PROC_StopFollow|PROC_StopFollow]] if you used [[Osiris/Shared/PROC_Follow|PROC_Follow]]).
 
* Make sure to stop following a previous character before starting to follow a new one. [[Osiris/Shared/PROC_Follow|PROC_Follow]] will automatically take care of this.
 
* Note that this call does ''not'' turn '''_Character''' in a so-called [[Party_Followers|party follower]] or minion, which is done via [[Osiris/API/AddPartyFollower|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 [[Osiris/API/GetReservedUserID|user]] that controls this player character.
 
 
===== See Also =====
 
* [[Osiris/API/AddPartyFollower|AddPartyFollower]]
 
* [[Osiris/API/StopFollow|StopFollow]]
 
* Helper [[Osiris/Shared/PROC_Follow|PROC_Follow]]
 
* Helper [[Osiris/Shared/PROC_StopFollow|PROC_StopFollow]]
 
 
[[Category:Osiris Calls|Follow]]
 

Latest revision as of 13:29, 19 March 2021