[Change] Updated ai API documentation.
This commit is contained in:
parent
53d5eb6172
commit
5c15cf5265
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user