AI Command Lab // Flight Simulator
305D: The Authority Check
Initial AI Output (Fragile)
// AI-Generated Code: Insecure
void OpenDoor() {
// Audit Fail: Any hacker can call this function anytime.
// They can open doors across the map instantly.
doorState.Value = true;
}
Initial AI Prompt
"You ask the AI: "Let the player open the door.""
Pilot Comm Link
Mission Objective: A skilled Navigator directs the AI to Validate.
Optimized Protocol
// Corrected: Trust No One
[ServerRpc]
void OpenDoorServerRpc() {
if (Vector3.Distance(player, door) < 2f) {
doorState.Value = true;
}
}