[Add] Added new AI API calls to API docs.
This commit is contained in:
parent
88fed6f40c
commit
abb1a6e647
@ -173,15 +173,9 @@ timeup(number t)
|
||||
-- return boolean true if timer t is up.
|
||||
|
||||
// ================
|
||||
// MISC!
|
||||
// MESSAGING!
|
||||
// ================
|
||||
|
||||
createvect(number x, number y)
|
||||
-- Create a vector from cartesian coords.
|
||||
-- x coord of the vector.
|
||||
-- y coord of the vector.
|
||||
-- return pointer to the Vec2
|
||||
|
||||
comm(number id, string message)
|
||||
-- Make the pilot say something to the pilot of id.
|
||||
-- id - of the pilot to speak to.
|
||||
@ -193,6 +187,29 @@ broadcast(string message)
|
||||
-- message - string to say to everyone in the system.
|
||||
-- return nil
|
||||
|
||||
// ================
|
||||
// LOOT
|
||||
// ================
|
||||
|
||||
setcredits(number creds)
|
||||
-- Set the pilot's credits. Only works during create.
|
||||
-- creds - Pilot's credits.
|
||||
-- return nil.
|
||||
|
||||
setcargo(string cargo, number quantity)
|
||||
-- Give the pilot quantity of cargo, only works during create.
|
||||
-- cargo - name of cargo to give the pilot.
|
||||
-- quantity - amount to give.
|
||||
-- return nil.
|
||||
|
||||
shipprice()
|
||||
-- Get the price of the pilot's ship.
|
||||
-- return the price of the ship.
|
||||
|
||||
// ================
|
||||
// MISC
|
||||
// ================
|
||||
|
||||
rng(number low, number high)
|
||||
-- Return a random number between low and high.
|
||||
-- low - minimum to return.
|
||||
|
Loading…
Reference in New Issue
Block a user