Skip to content

function setPlayerFatness

This function will set the player fatness factor for all players.
Original: setPlayerFatness

Declaration

async def setPlayerFatness(id : int, fatness : float)

Parameters

int id: the player id.
float fatness: ratio of how much you want to make player fatter, 0.0 is default fatness (none).

Source code in src/pyg2o/functions/player.py
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
async def setPlayerFatness(id : int, fatness : float):
    """
    This function will set the player fatness factor for all players.
    Original: [setPlayerFatness](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/setPlayerFatness/)

    ## Declaration
    ```python
    async def setPlayerFatness(id : int, fatness : float)
    ```
    ## Parameters
    `int` **id**: the player id.
    `float` **fatness**: ratio of how much you want to make player fatter, `0.0` is default fatness (none).
    """
    data = f'return {get_call_repr()}'

    server = await PythonWebsocketServer.get_server()
    result = await server.make_request(data)
    return result