mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
482 B
Plaintext
21 lines
482 B
Plaintext
/*
|
|
* Author: Nou
|
|
*
|
|
* Remove all events of a certain event type.
|
|
*
|
|
* Argument:
|
|
* 0: Event name (string)
|
|
*
|
|
* Return value:
|
|
* Nothing
|
|
*/
|
|
#include "script_component.hpp"
|
|
private ["_eventName", "_eventNames", "_eventFunctions", "_eventIndex"];
|
|
_eventName = _this select 0;
|
|
|
|
_eventNames = GVAR(events) select 0;
|
|
_eventFunctions = [];
|
|
_eventIndex = _eventNames find _eventName;
|
|
if(_eventIndex != -1) then {
|
|
(GVAR(events) select 1) set[_eventIndex, []];
|
|
}; |