diff --git a/docs/maps/api-player.md b/docs/maps/api-player.md index 631424a8..ece94b07 100644 --- a/docs/maps/api-player.md +++ b/docs/maps/api-player.md @@ -64,6 +64,11 @@ WA.player.getPosition(): Promise ``` 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()`