2015-01-14 20:44:32 +00:00
|
|
|
/*
|
|
|
|
* Author: Nou
|
|
|
|
* Remove all events of a certain event type.
|
|
|
|
*
|
|
|
|
* Argument:
|
2015-09-18 23:50:17 +00:00
|
|
|
* 0: Event name <STRING>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
2015-01-14 20:44:32 +00:00
|
|
|
*
|
2015-09-18 23:50:17 +00:00
|
|
|
* Public: Yes
|
2015-01-14 20:44:32 +00:00
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-09-18 23:50:17 +00:00
|
|
|
params ["_eventName"];
|
|
|
|
|
|
|
|
GVAR(events) params ["_eventNames", "_events"];
|
|
|
|
|
2015-12-14 12:08:19 +00:00
|
|
|
private _eventFunctions = [];
|
|
|
|
private _eventIndex = _eventNames find _eventName;
|
2015-09-18 23:50:17 +00:00
|
|
|
|
2015-05-14 18:06:06 +00:00
|
|
|
if (_eventIndex != -1) then {
|
2015-09-18 23:50:17 +00:00
|
|
|
_events set [_eventIndex, []];
|
|
|
|
};
|