I operate under the assumption that mobileEnemy.Team is the 'default' team for an enemy, and entity.Team is the current (possibly temporary) team, so in the majority of instances entity.Team should be checked.
I've seen some code that confuses me:
EnemySenses.GetTarget() references both mobileEnemy.Team and entity.Team.
GameManager.AreEnemiesNearby() checks mobileEnemy.Team whereas GameManager.HowManyEnemiesOfType() checks entity.Team
Confusion between entity.Team and mobileEnemy.Team
- DunnyOfPenwick
- Posts: 277
- Joined: Wed Apr 14, 2021 1:58 am
- Location: Southeast US
- Interkarma
- Posts: 7251
- Joined: Sun Mar 22, 2015 1:51 am
Re: Confusion between entity.Team and mobileEnemy.Team
Could be down to different people implementing things at different times.
I'll move this into Issues so I review later.
I'll move this into Issues so I review later.