Tier 4 Series 305

305G: The Squadron Exam

Capstone Exam
Pilot Record
Student Profile
"The squadron is desynchronized. Pilots are controlling each other's planes, health bars aren't updating for teammates, and missiles are invisible. Identify the three critical network failures to re-establish the link."

Target Asset for Audit

FRAGILE_CODE_DETECTED
using Unity.Netcode;
using UnityEngine;

public class FighterJet : NetworkBehaviour {
    public int hullIntegrity = 100;

    void Update() {
        // Audit Requirement: Lesson 305A (Ownership)
        // Error 1: Global Input
        if (Input.GetKeyDown(KeyCode.Space)) Fire();
    }

    void Fire() {
        // Audit Requirement: Lesson 305F (Spawning)
        // Error 2: Local Instantiation
        Instantiate(missilePrefab, transform.position, transform.rotation);
    }

    public void TakeDamage(int damage) {
        // Audit Requirement: Lesson 305B (NetVars)
        // Error 3: Local Variable
        hullIntegrity -= damage;
    }
}

Supervisor's Certification

Authenticated Pilot
pilot_191a82ef75e54304
Session Secure

Failure Point #1

Input Bleed Failure

The input logic runs on every machine. Command the AI to check for Ownership.

Failure Point #2

Ghost Spawn Failure

The missile is instantiated locally. Command the AI to use Network Spawning.

Failure Point #3

State Desync Failure

Hull Integrity is a standard int. Command the AI to use a NetworkVariable.