Ares icon indicating copy to clipboard operation
Ares copied to clipboard

Add ability to spawn mines without them being visible on the map

Open astruyk opened this issue 11 years ago • 3 comments

Requested multiple times on the forums. It'd be nice to be able to do.

astruyk avatar Mar 12 '15 00:03 astruyk

This almost works - except the mine isn't added to the curator for some reason.

if (isClass (configFile >> "CfgPatches" >> "Ares")) then
{
    [
        "Spawn",
        "APERS Mine",
        {
            _bomb = "ATMine_Range_Mag" createVehicle (_this select 0);
            [[_bomb]] call Ares_fnc_AddUnitsToCurator;
        }
    ] call Ares_fnc_RegisterCustomModule;
};

Unfortunately until I find a way to make the curator-adding work this is blocked.

Current workaround - Have Zeus be on the 'Civilian' side so that mines that are created don't show up for players (presuming they're on Bufor or Opfor).

astruyk avatar Mar 12 '15 00:03 astruyk

ACE3 can add minefields in zeus without them showing up for the players. Maybe you can get some code from there.

https://github.com/acemod/ACE3/blob/master/addons/zeus/functions/fnc_bi_moduleMine.sqf

Olympic1 avatar May 04 '16 10:05 Olympic1

ACE3 simply modifies the BI Zeus module.

jonpas avatar May 04 '16 10:05 jonpas