Update docs/maps/api-player.md

Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
This commit is contained in:
Bénédicte Q 2021-10-29 18:34:54 +02:00 committed by Benedicte Quimbert
parent 516d756db1
commit 8bc75e1ccb

View file

@ -110,6 +110,9 @@ WA.player.onPlayerMove(console.log);
## Player specific properties
Similarly to maps (see [API state related functions](api-state.md)), it is possible to store data **related to a specific player** in a "state". Such data will be stored using the local storage from the user's browser.
{.alert.alert-info}
In the future, player-related variables will be stored on the WorkAdventure server if the current player is logged.
Any value that is serializable in JSON can be stored.
### Setting a property