Anyone know how to "terminate" a mission event handler? I have:
private _mapclick = addMissionEventHandler ["MapSingleClick", {
params ["_units", "_pos", "_alt", "_shift"];
**a bunch of code that works fine including a group spawn**
removeMissionEventHandler ["MapSingleClick", _mapclick];
}];
This is spawned as one of my custom functions, it runs but I can click on the map forever and it just keeps running the script over and over, including the group spawn. I need the EH to stop after a single map click LIKE IT'S STATED PURPOSE. The idea is that the player clicks on the map once, and a group is spawned with a waypoint. While the team is spawned, the player has the support option removed and cannot call it again, until the waypoint is complete or the team is dead. Anything yall got is helpful thanks!