This function will set the player skill weapon for all players.
Original: setPlayerSkillWeapon
Declaration
async def setPlayerSkillWeapon(id : int, skillId : int, percentage : int)
Parameters
int id: the player id.
int skillId: For more information see Skill weapon constants.
int percentage: the percentage in range <0, 100>.
Source code in src/pyg2o/functions/player.py
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618 | async def setPlayerSkillWeapon(id : int, skillId : int, percentage : int):
"""
This function will set the player skill weapon for all players.
Original: [setPlayerSkillWeapon](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/setPlayerSkillWeapon/)
## Declaration
```python
async def setPlayerSkillWeapon(id : int, skillId : int, percentage : int)
```
## Parameters
`int` **id**: the player id.
`int` **skillId**: For more information see [Skill weapon constants](../../constants/skill-weapon.md).
`int` **percentage**: the percentage in range <0, 100>.
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return result
|