Skip to content

Commit

Permalink
Updated engine set command docs
Browse files Browse the repository at this point in the history
  • Loading branch information
S-S-X committed Feb 15, 2020
1 parent 4877e48 commit 33b42d5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/digiline.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,20 @@ digiline_send("jumpdrive", { command = "set", key = "z", value = 2048 })
digiline_send("jumpdrive", { command = "set", key = "radius", value = 15 })
```

Alternate way to set coordinates

```lua
-- request
digiline_send("jumpdrive", { command = "set", x = 1024, y = 1024, z = 2048, r = 15, formupdate = false })
```
Where
* `x` sets x coordinate
* `y` sets y coordinate
* `z` sets z coordinate
* `r` sets radius
* `formupdate` updates coordinates on formspec
Every value is optional. `x`, `y`, `z` and `r` must be integers. `formupdate` is truth value.

### Simulate jump

Simulate a jump
Expand Down

0 comments on commit 33b42d5

Please sign in to comment.