AI Command Lab // Flight Simulator
305C: The RPC Radio
Initial AI Output (Fragile)
// AI-Generated Code: Local Only
void Fire() {
// Audit Fail: The bullet spawns on my screen.
// Nobody else sees the bullet.
Instantiate(bullet);
}
Initial AI Prompt
"You ask the AI: "Fire the weapon when I click.""
Pilot Comm Link
Mission Objective: A skilled Navigator directs the AI to use RPCs.
Optimized Protocol
// Corrected: Radio Request
[ServerRpc]
void RequestFireServerRpc() {
// This runs on the Server!
SpawnBullet();
}