Hey guys, Need help I'm making a mission that you click the map and an explosion happens with this code
// ----> Local only
if (!local player) exitWith {};
// ----> Hint
hint "Open your map and mark the target with a single click.";
// ----> (Re)Set variable
MapClicked = false;
// ----> Get the map click
onMapSingleClick "clickPos = _pos; MapClicked = true; onMapSingleClick {};";
// ----> Wait until clicked
waitUntil {MapClicked};
// ----> Create bomb
[west, "AirBase"] sideChat "ETA 15 Seconds";
sleep 15;
"Bo_GBU12_LGB" createVehicle clickPos;
sleep 1;
[west, "AirBase"] sideChat "Airstrike Complete";
And I have my trigger that executes the command like this.
player addAction ["Drop bomb","ClickBomb.sqf"];
Now the only problem is, I want to make it only used once... how can I remove it from the list after it has been done once?
Thank you sorry for the noob response!