[Add] Added additional Lua functon calls to API.

This commit is contained in:
Allanis 2013-02-09 01:02:02 +00:00
parent 58e7c9b3d7
commit 7c435e526a

View File

@ -35,10 +35,10 @@ getdist(Vec2 vect)
-- Vect point to calculate the distance from. -- Vect point to calculate the distance from.
-- return nil. -- return nil.
getpos(number/pilot) getpos([number pilot])
-- Get the pilots position of the current pilots position if no pilot -- Get the pilots position of the current pilots position if no pilot
is specified. is specified.
-- pilot ID or poiunter to the pilot to get the position of, if no params are called -- pilot ID of the pilot to get the position of, if no params are called
it uses the current pilot as target. it uses the current pilot as target.
-- return Vec2 -- return Vec2
@ -100,6 +100,18 @@ face(number/Vec2 target, number invert)
-- invert face away if 1 -- invert face away if 1
-- return number offset from target in grad -- return number offset from target in grad
brake()
-- Makes the pilot brake (backthrust).
-- return nil.
getnearestplanet()
-- Gets the nearest friendly planet's position.
-- return position to the nearest friendly planet.
getrndplanet()
-- Gets the position of a random friendly planet.
-- return position to a random friendly planet.
// ================ // ================
// COMBAT! // COMBAT!
// ================ // ================