Aller au contenu

Photo

GetPartyLeader() and GetHero()


2 réponses à ce sujet

#1
anakin5

anakin5
  • Members
  • 258 messages
What is the difference ? Is there a party leader for enemies ?

#2
Ranlas

Ranlas
  • Members
  • 96 messages
My understanding is that GetHero always returns the player-generated character and GetPartyLeader is the character who is currently under direct control of the player.

#3
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
Most of the time the two functions will return the same thing. However, you can change the party leader through scripting. It's used for sequences where your main character is not in the party. GetPartyLeader() will get the current leader, if it has been changed.



GetHero() will always return the original player character.



GetMainControlled() will return the currently selected character, the one who's abilities are in the bar at the bottom of the screen.