Documentation on type Position
This commit is contained in:
parent
08824b70aa
commit
6871335e9b
@ -64,6 +64,11 @@ WA.player.getPosition(): Promise<Position>
|
|||||||
```
|
```
|
||||||
The player's current position is available using the `WA.player.getPosition()` function.
|
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}
|
{.alert.alert-info}
|
||||||
You need to wait for the end of the initialization before calling `WA.player.getPosition()`
|
You need to wait for the end of the initialization before calling `WA.player.getPosition()`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user