From ef4cfe77be43fc57e65d0be1be8bdde7fd08e298 Mon Sep 17 00:00:00 2001 From: Zughy <63455151+Zughy@users.noreply.github.com> Date: Sat, 8 Jan 2022 13:39:19 +0100 Subject: [PATCH] Add documentation --- game_api.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/game_api.txt b/game_api.txt index 352f4584..2e69c0ea 100644 --- a/game_api.txt +++ b/game_api.txt @@ -462,6 +462,12 @@ The player API can register player models and update the player's appearance. * `player`: PlayerRef * `textures`: array of textures. If nil, the default from the model def is used +* `player_api.set_texture(player, texture[, texture_ID])` + * Sets a player texture + * `player`: PlayerRef + * `texture`: texture filename + * `texture_ID`: the ID of the texture to change + * `player_api.get_animation(player)` * Returns a table containing fields `model`, `textures` and `animation` * Any of the fields of the returned table may be nil