OnFireInput(): if not isBarrelStabilized and turretTraverseRate > 0: ApplyAngularError(random(0, dispersionBase * range)) CalculateLead(targetSpeed, targetAngle, muzzleVelocity) SpawnProjectile(ammoType, currentBarrelVelocity) PlayRecoilAnimation() ApplyMuzzleSmokeParticle() NotifyLoaderForNextShell() No health pool. Instead, a UTankDamageModel component tracks:
| Stage | Script Action | |-------|----------------| | 0 | Spawn player tank at location A, AI driver moves to waypoint 1 | | 1 | On reach waypoint 1 → trigger VO “Enemy column approaching” | | 2 | Spawn 3 T-34s at navmesh edge, set AI behavior to “patrol cautious” | | 3 | If player fires → enemy morale breaks (retreat) else flank | | 4 | On two enemy destroyed → trigger victory VO, end mission |
Example mission flow for "Ambush at Psel River":
€38.80