Exmortem
Community Developer
- Joined
- Mar 28, 2010
- Messages
- 799
Is it possible to override the amount of pulses the bot gives out within a combatroutine? I'm having an issue where I want to be able to heal out of combat, so I modified the combat assist botbase to be able to do so, in turn it's lowered the games performance because RB is constantly pulsing looking at my parties health.
This is what I use to find a healing target.
Only pulsing that at the bots current rate is lowering my FPS by nearly 20, if I add a check to see if the healtarget is a tank it continues to lower FPS. I'm thinking that lowering the pulses will return some performance.
This is what I use to find a healing target.
Code:
foreach (PartyMember p in PartyManager.VisibleMembers)
{
if ((p.GameObject as BattleCharacter).CurrentHealthPercent < 100 && !(p.GameObject as BattleCharacter).IsDead)
{
if (healtarget == null || (p.GameObject as BattleCharacter).CurrentHealthPercent < healtarget.CurrentHealthPercent)
healtarget = (p.GameObject as BattleCharacter);
}
}
Only pulsing that at the bots current rate is lowering my FPS by nearly 20, if I add a check to see if the healtarget is a tank it continues to lower FPS. I'm thinking that lowering the pulses will return some performance.