Difference between revisions of "Bot Playground/Commands/fly"

From SmartBots Developers Docs
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Starts or stops flying.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.fly(isFlying); </syntaxhighlight> {{API Command T...")
 
Line 3: Line 3:
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
Bot.fly(isFlying);
+
Bot.fly(enableFlying);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 10: Line 10:
  
 
{{API Variable Group|Input}}
 
{{API Variable Group|Input}}
{{API Variable|isFlying|yes}} true to start flying, false to stom
+
{{API Variable|enableFlying|yes}} true to start flying, false to stom
  
 
{{API Variable Group|Output}}
 
{{API Variable Group|Output}}

Revision as of 10:37, 7 December 2023

Starts or stops flying.

Bot.fly(enableFlying);

Reference

This command accepts the following parameters:

Variable Required Description


Input:
enableFlying yes true to start flying, false to stom
Output:
Function returns a Promise with the following data:
success bool true if command completed successfully
error string error string if command has failed


Examples

Bot.fly(true);