Documentation on type Position

This commit is contained in:
Benedicte Quimbert 2021-12-08 11:48:16 +01:00
parent ddb4ae8823
commit 9cf64c3c76

View file

@ -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()`