Skip to content

function clearNpcActions

This function clears remote NPC actions queue. Remote NPCs uses actions queue to execute thier tasks.
Original: clearNpcActions

Declaration

async def clearNpcActions(npc_id : int)

Parameters

int npc_id: the npc identifier.

Source code in src/pyg2o/functions/npc.py
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
async def clearNpcActions(npc_id : int):
    """
    This function clears remote NPC actions queue. Remote NPCs uses actions queue to execute thier tasks.
    Original: [clearNpcActions](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/npc/clearNpcActions/)

    ## Declaration
    ```python
    async def clearNpcActions(npc_id : int)
    ```
    ## Parameters
    `int` **npc_id**: the npc identifier.
    """
    data = f'return {get_call_repr()}'

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