forked from mtcontrib/maidroid
add doc file
A maidroid/script/instruction_set_doc.lua
This commit is contained in:
parent
9628c8efe2
commit
2798eb6045
23
maidroid/script/instruction_set_doc.lua
Normal file
23
maidroid/script/instruction_set_doc.lua
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
-- See also the pdisc mod's instruction list.
|
||||||
|
|
||||||
|
local instr = {
|
||||||
|
{"getpos", "<v x>, <v y>, <v z>", "Gets the maidroid's position."},
|
||||||
|
{"getvelocity", "<v x>, <v y>, <v z>", "Gets the maidroid's velocity."},
|
||||||
|
{"getacceleration", "<v x>, <v y>, <v z>", "Gets the maidroid's acceleration."},
|
||||||
|
{"getyaw", "<v yaw>", "Gets the maidroid's yaw."},
|
||||||
|
|
||||||
|
|
||||||
|
{"setyaw", "<n yaw>", "Sets the maidroid's yaw in radians."},
|
||||||
|
|
||||||
|
{"jump", "[<n heigth>]", "Makes the droid jump, if height is invalid (height ∈ ]0,2]), it's set to 1, if it's a variable, it's set to a bool indicating whether the jump succeeded."},
|
||||||
|
{"beep", "", "Execute this every second while the droid walks backwards, pls."},
|
||||||
|
}
|
||||||
|
|
||||||
|
o = "Instructions:\n\n"
|
||||||
|
for i = 1,#instr do
|
||||||
|
i = instr[i]
|
||||||
|
o = o .. i[1] .. " " .. i[2] .. "\n"
|
||||||
|
.. " " .. i[3] .. "\n\n" -- TODO: max 80 letters each line
|
||||||
|
end
|
||||||
|
|
||||||
|
print(o)
|
Loading…
Reference in New Issue
Block a user