DroneV2 Module
The droneV2 module expands the standard drone controls with extra movement and gear inspection tools.
Movement And Effects
Section titled “Movement And Effects”| Function | Returns | Description |
|---|---|---|
droneV2.goto(x, z) | void | Moves the drone directly to the given coordinates. |
droneV2.doSpin() | void | Plays a spin animation. |
droneV2.doWobble() | void | Plays a wobble animation. |
droneV2.doBig() | void | Plays the enlargement animation. |
Locking
Section titled “Locking”| Function | Returns | Description |
|---|---|---|
droneV2.lock() | void | Locks the Plant under it. |
droneV2.unlock() | void | Unlocks the plant. |
droneV2.isLocked() | boolean | Returns whether the plant under is locked. |
lau-compiler.exe
if not droneV2.isLocked() then droneV2.lock() print("Status: plant Locked")endOUTPUT:
Status: Movement Locked
Tile And Gear Tools
Section titled “Tile And Gear Tools”| Function | Returns | Description |
|---|---|---|
droneV2.swap(dir) | void | Swaps the crop under the drone one tile in the given direction. |
droneV2.getGear() | Enum.Gear | Returns the current gear. |
droneV2.hasGear() | boolean | Returns whether a gear is equipped. |
droneV2.getGearName() | string | Returns the gear name. |
droneV2.getGearDuration() | number | Returns the current gear duration. |
droneV2.getFertilizer() | number | Returns the fertilizer amount. |
droneV2.getManualWater() | number | Returns the manual water amount. |
droneV2.getMachineWater() | number | Returns the machine water amount. |
droneV2.getLightning() | number | Returns the lightning charge amount. |