From de14fa58ea9d2b5e1df3ed6390b94ee631e25a83 Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Sat, 9 Feb 2013 22:15:44 +0000
Subject: [PATCH] [Add] Updating the AI API file.

---
 scripts/ai/API | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/scripts/ai/API b/scripts/ai/API
index c074910..787e107 100644
--- a/scripts/ai/API
+++ b/scripts/ai/API
@@ -129,7 +129,7 @@ shoot([number weapon])
     -- return nil.
 
 getenemy()
-  -- return the id of the nearest enemy.
+  -- return the id of the nearest enemy or -1 if none is found.
 
 // ================
 // TIMERS!
@@ -156,11 +156,17 @@ createvect(number x, number y)
     -- y coord of the vector.
     -- return pointer to the Vec2
 
-say(string message)
-  -- Make the pilot say something to the player.
+comm(number id, string message)
+  -- Make the pilot say something to the pilot of id.
+    -- id - of the pilot to speak to.
     -- message - string to output.
     -- return nil
 
+broadcast(string message)
+  -- Make the pilot broadcast a message to everyone in the system.
+    -- message - string to say to everyone in the system.
+    -- return nil
+
 rng(number low, number high)
   -- Return a random number between low and high.
     -- low - minimum to return.