mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
467 B
Plaintext
27 lines
467 B
Plaintext
/*
|
|
* Author: Nou
|
|
* Remove all events of a certain event type.
|
|
*
|
|
* Argument:
|
|
* 0: Event name <STRING>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_eventName"];
|
|
|
|
GVAR(events) params ["_eventNames", "_events"];
|
|
|
|
private ["_eventFunctions", "_eventIndex"];
|
|
|
|
_eventFunctions = [];
|
|
_eventIndex = _eventNames find _eventName;
|
|
|
|
if (_eventIndex != -1) then {
|
|
_events set [_eventIndex, []];
|
|
};
|