astruyk / Ares

An arma3 mod that adds some extra functionality to Zeus
51 stars 11 forks source link

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

Open astruyk opened 9 years ago

astruyk commented 9 years ago

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

astruyk commented 9 years ago

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).

Olympic1 commented 8 years ago

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

jonpas commented 8 years ago

ACE3 simply modifies the BI Zeus module.