fix: Fix for undefined function name

This commit is contained in:
AURUMVORXX
2024-11-04 14:57:21 +03:00
parent 606dc7a776
commit 965c65147f

View File

@@ -88,19 +88,19 @@ def event(name : str, priority : int = 9999):
return func return func
return inlineEvt return inlineEvt
def removeEventHandler(name : str, func : function): def removeEventHandler(name : str, func : object):
""" """
This function will unbind function from specified event. This function will unbind function from specified event.
Original: [removeEventHandler](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/shared-functions/event/removeEventHandler/) Original: [removeEventHandler](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/shared-functions/event/removeEventHandler/)
## Declaration ## Declaration
```python ```python
def removeEventHandler(name : str, func : function) def removeEventHandler(name : str, func : object)
``` ```
## Parameters ## Parameters
* `str` **name**: the name of the event * `str` **name**: the name of the event
* `function` **func**: the reference to a function which is currently bound to specified event. * `object` **func**: the reference to a function which is currently bound to specified event.
## Usage ## Usage
```python ```python