HS COMMAND

From HSpace

Jump to: navigation, search

A new function to allow the use of @nav/@eng/@console commands via functions. These must still be executed as the console(ex. @fo nav=th hs_command(nav,status)

hs_command(<cmd>,<switch>,<arg_left>,<arg_right>) Valid <cmd>s are 'nav', 'eng', or 'con'. See help for @<cmd> for a list of <switch>es, and see help @<cmd>-<switch> for help on that <switch>. <arg_left> is the text before the '=' in the command syntax, and <arg_right> is the text after '='.

examples &cmd_sh nav=$sh *m*:th hs_command(nav,setheading,%0,%1) &cmd_quick_reactor nav=$power:th hs_command(eng,setsyspower,reactor,100\\\%)

Notice % must be escaped for double evaluation.

Views
Personal tools