AI Command Lab // Flight Simulator
103E: The Trigger Threshold
Initial AI Output (Fragile)
// AI-Generated Code: Game-Breaking Speed
void OnTriggerStay(Collider other) {
// Audit Fail: Heals 60 HP per second.
// Instantly refills health to max.
player.Heal(10);
}
Initial AI Prompt
"You ask the AI: "Heal the player when they stand on the pad.""
Pilot Comm Link
Mission Objective: Direct the AI to use Inverse Kinematics (IK) for procedural foot placement on uneven terrain.
Optimized Protocol
// Corrected: Balanced Logic
private float nextHealTime;
void OnTriggerStay(Collider other) {
if (Time.time > nextHealTime) {
player.Heal(10);
nextHealTime = Time.time + 1.0f; // Wait 1 second
}
}