Missions
Where you control your character in 3D environment. Not a global map. Examples: Town, village, siege, battles, hideouts, prison break
MissionBehaviour (PURE MissionBehavior not present in the game)
MissionView - subtype of MissionBehaviour - views, icons, scores, etc
shows some UI to the player
handles input
listens to keypress
MissionLogic - subtype of MissionBehaviour - manages the mission in a some way
spawning agents
handling reinformcements
handling routing
OnAgentHit
void OnAgentHit(Agent affectedAgent, Agent affectorAgent, in MissionWeapon attackerWeapon, in Blow blow, in AttackCollisionData attackCollisionData)
int inflictedDamage = blow.InflictedDamage;
// weapon
WeaponComponentData attackerWeaponComponentData = attackerWeapon.CurrentUsageItem;
attackerWeaponComponentData.WeaponClass
bool blow.IsMissile
bool blow.IsHeadShot
BoneBodyPartType blow.VictimBodyPart
Teams
public Mission.TeamCollection Teams { get; private set; }
AttackerTeam
DefenderTeam
AttackerAllyTeam
DefenderAllyTeam
PlayerTeam
PlayerEnemyTeam
PlayerAllyTeam
SpectatorTeam
Find Entity and it's position in scene
TaleWorlds.Engine.Scene.FindEntityWithName or FindEntityWithTag and then you can get the entity Vec3 position from GameEntity.GlobalPosition