[Add] Updating the AI API file.
This commit is contained in:
parent
d1c02773bf
commit
de14fa58ea
@ -129,7 +129,7 @@ shoot([number weapon])
|
|||||||
-- return nil.
|
-- return nil.
|
||||||
|
|
||||||
getenemy()
|
getenemy()
|
||||||
-- return the id of the nearest enemy.
|
-- return the id of the nearest enemy or -1 if none is found.
|
||||||
|
|
||||||
// ================
|
// ================
|
||||||
// TIMERS!
|
// TIMERS!
|
||||||
@ -156,11 +156,17 @@ createvect(number x, number y)
|
|||||||
-- y coord of the vector.
|
-- y coord of the vector.
|
||||||
-- return pointer to the Vec2
|
-- return pointer to the Vec2
|
||||||
|
|
||||||
say(string message)
|
comm(number id, string message)
|
||||||
-- Make the pilot say something to the player.
|
-- Make the pilot say something to the pilot of id.
|
||||||
|
-- id - of the pilot to speak to.
|
||||||
-- message - string to output.
|
-- message - string to output.
|
||||||
-- return nil
|
-- return nil
|
||||||
|
|
||||||
|
broadcast(string message)
|
||||||
|
-- Make the pilot broadcast a message to everyone in the system.
|
||||||
|
-- message - string to say to everyone in the system.
|
||||||
|
-- return nil
|
||||||
|
|
||||||
rng(number low, number high)
|
rng(number low, number high)
|
||||||
-- Return a random number between low and high.
|
-- Return a random number between low and high.
|
||||||
-- low - minimum to return.
|
-- low - minimum to return.
|
||||||
|
Loading…
Reference in New Issue
Block a user