From 5c15cf52651aac46bbbb4003b53d0c54539ab945 Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Wed, 20 Mar 2013 19:38:41 +0000
Subject: [PATCH] [Change] Updated ai API documentation.

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

diff --git a/scripts/ai/API b/scripts/ai/API
index e4ae57c..c0c231b 100644
--- a/scripts/ai/API
+++ b/scripts/ai/API
@@ -29,20 +29,24 @@ taskname()
 // CONSULT!
 // ================
 
-gettarget()
+target()
   -- Gets the current target.
     -- return pointer to the target.
 
-gettargerid()
+targerid()
   -- Gets the current targets id.
     -- return number of the current target id.
 
-getdist(Vec2 vect)
+rndpilot()
+	-- Gets a random target ID
+		-- return number of random target id.
+
+dist(Vec2 vect)
   -- Gets the distance from the position of the Vec2 vect.
     -- Vect point to calculate the distance from.
     -- return nil.
 
-getpos([number pilot])
+pos([number pilot])
   -- Get the pilots position of the current pilots position if no pilot
      is specified.
     -- pilot ID of the pilot to get the position of, if no params are called