Documentation on type Position
This commit is contained in:
parent
ddb4ae8823
commit
9cf64c3c76
1 changed files with 5 additions and 0 deletions
|
@ -92,6 +92,11 @@ WA.player.getPosition(): Promise<Position>
|
|||
```
|
||||
The player's current position is available using the `WA.player.getPosition()` function.
|
||||
|
||||
`Position` has the following attributes :
|
||||
* **x (number) :** The coordinate x of the current player's position.
|
||||
* **y (number) :** The coordinate y of the current player's position.
|
||||
|
||||
|
||||
{.alert.alert-info}
|
||||
You need to wait for the end of the initialization before calling `WA.player.getPosition()`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue