-
Notifications
You must be signed in to change notification settings - Fork 0
Commands
Commands are a way to communicate with the script to change settings such as speed, and enacting actions such as walking.
To run a command, go to the programmable block in the terminal, change the Argument, and press Run.
Commands follow the format command argument, when [brackets] specify an optional argument and <lesser/greater> signs are required arguments.
For any command that involves changing settings with numbers e.g. [value], you can set, add, or subtract a number from it.
- To set a value, use
=<number>, such as:stepspeed =3 - To add a value, use
+<number>, such as:stepspeed +3 - To subtract a value, use
-<number>, such as:stepspeed -3
For any command that involves [toggle], being a boolean (true/false):
- To toggle, use
toggleor leave it blank - To toggle on, use
onortrue - To toggle off, use
offorfalse
For any command that involves [group toggle]:
- It's specified as either:
-
[id] [action]- e.g.:
legs all toggle,legs 1 off,arms 2 on, etc.
- e.g.:
-
[action]- e.g.:
arms off,legs on,arms toggle, etc.
- e.g.:
-
Truly, it's: {command} [id/action] [action]
Any argument not stated here will be explained in the command's description.
-
apply- Applies any settings changed with commands to the configurations, good for adjusting settings and locking them in
-
setup [toggle]- Toggle setup mode; basically like running "reload" constantly with the side effect of being more performance heavy
-
reload- Reload all the blocks and their associated configurations
-
NOTE: This is REQUIRED for leg/arm custom data configurations to take effect; alternatively use setup mode
-
NOTE: For the programmable block's custom data, a reload or recompile is required; alternatively use setup mode
-
autorename [placeholder]- Rename all leg blocks based on a template, read more here.
-
autotag- Finds all blocks based on cockpit's position (relative to the cockpit's forward/backwards)
-
NOTE: Doesn't support strafe/turn joints
-
autotype <type>- Automatically retype all legs, want to switch to Chicken walker? Use
autotype 2
- Automatically retype all legs, want to switch to Chicken walker? Use
-
walk [toggle] [forwards/backwards]- Toggle walk override, if no argument is provided, it will toggle between walking forwards and halting
- This is the most confusing semantically, e.g.:
-
walktoggles between forward/halt -
walk toggleis the same as above -
walk toggle forwardsis the same as above -
walk toggle backwardstoggles between backward/halt -
walk forwardswalks forwards (no halt!) -
walk backwardswalks backwards
-
-
halt- Stops all walking, same as
walk halt | turn halt | strafe halt
- Stops all walking, same as
-
crouch [toggle]- Toggle crouch
-
turn [value]- Change turn override
- Value can be any of:
-
leftgo left -
rightgo right -
haltstop -
{number}set a turn override manually, e.g.turn =1orturn +0.5
-
-
strafe [value]- Change strafe override
- Value can be any of:
-
leftgo left -
rightgo right -
haltstop
-
-
thrusters [toggle]- Toggle thrusters
-
vtol [toggle]- Toggle thruster vtol mode
-
hover [toggle]- Toggle thruster mode, default toggles between Override and Hover, otherwise, on is hover, off is override
-
twist [degrees]- Set the torso twist rotors to go to the degrees specified 0 to 360, by default 0 if no value is provided
- This also follows the
[value]standard, so ex:twist =0to zero,twist +5to add 5 to the current rotation - Additive/subtractive rotations are based on the current twist(s) average rotation, not the current target rotation
-
armsreset- Reset (enabled) arms to their default zeros
-
arms [group toggle]- Toggle arm control
- See Syntax for group toggle options
-
legs [group toggle]- Toggle leg control
- See Syntax for group toggle options
-
stabilization [toggle]- Toggle stabilization control
-
magnets [toggle]- Toggle magnets
-
stepspeed [value]- Change walk speed
-
crouchspeed [value]- Change crouch speed
-
standingdistance [value]- Change standing distance -- leg specific
-
standingheight [value]- Change standing height -- multiplier for how far the legs reach down
-
steplength [value]- Change step length -- how far the feet will travel
-
stepheight [value]- Change step height -- how far the feet lift off the ground
-
croucheight [value]- Change crouch height -- how far the mech crouches
-
strafelength [value]- Change strafe length -- how far the mech strafes, like step length
-
standinglean [value]- Change standing lean -- how far the foot "leans" forward/back
-
standingwidth [value]- Change standing lean -- how far the foot "leans" left/right
-
autohalt [toggle]- Toggle autohalt -- when true, mech will slow down when no movement is being held; when false, no such throttle "decay" is had
-
limp [toggle]- Turn off rotors and other leg blocks for a limp effect