mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
documented synchronized events.
This commit is contained in:
parent
8b389949bc
commit
41bd3cb6f5
@ -23,6 +23,11 @@ Events can be removed or cleared with the following commands.
|
||||
* `[eventName, eventHandlerId] call ace_common_fnc_removeEventHandler` <br/> will remove a specific event handler of the event name, using the ID returned from `ace_common_fnc_addEventHandler`.
|
||||
* `[eventName] call ace_common_fnc_removeAllEventHandlers` <br/> will remove all event handlers for that type of event.
|
||||
|
||||
### Synchronized Events
|
||||
* `[eventName, eventCodeBlock, ttlNumberOrCodeBlock] call ace_common_fnc_addSyncedEventHandler` <br/> adds a globally synchronized event handler which will expire events after the provided TTL, or the code returns true.
|
||||
* `[eventName] call ace_common_fnc_removeSyncedEventHandler` <br/> will remove a specific event handler of the event name, using the ID returned from `ace_common_fnc_addSyncedEventHandler`.
|
||||
* * `[eventName, args, ttlNumberOrCodeBlock] call ace_common_fnc_syncedEvent` <br/> calls a global synchronized event, which will also be run on JIP players unless it has expired; event will expire after the provided TTL, or the code returns true.
|
||||
|
||||
### Pattern:
|
||||
```c++
|
||||
// tapper machine
|
||||
|
Loading…
Reference in New Issue
Block a user