[Change] Updated ai API documentation.

This commit is contained in:
Allanis 2013-03-20 19:38:41 +00:00
parent 53d5eb6172
commit 5c15cf5265

View File

@ -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