Removing ammoboxes from the map.

Discussion in 'Celle' started by ElDubya, Feb 17, 2016.

  1. ElDubya

    ElDubya Well-Known Member

    Joined:
    Nov 1, 2014
    Messages:
    125
    Likes Received:
    6
    Is there any way to remove added ammoboxes from the map? I spent the better part of a day searching through all the scripts I have running on my Celle test server only to realise they were added to the map in various locations? Searchlights and mounted M2 guns I can deal with, ammoboxes with 30 or so various weapons and ammo is a different story however .........
     
  2. ElDubya

    ElDubya Well-Known Member

    Joined:
    Nov 1, 2014
    Messages:
    125
    Likes Received:
    6
    Nevermind, got it sorted :)
     
  3. ShootingBlanks

    ShootingBlanks OpenDayZ Guru!

    Joined:
    Mar 31, 2013
    Messages:
    2,422
    Likes Received:
    336
    PS.
    if you want to remove something.... anything ... besides removing the code that creates it ... run this script at the bottom of your init.sqf
    Code:
    _deleteList = nearestObjects [[7500,7500], ["classname","classename], 7500];
    {
    deletevehicle _x;
    } foreach _deleteList;
    
    you will of course replace classnames and the center position and search radius to suit your needs
    https://community.bistudio.com/wiki/nearestObjects
    if you want to remove a static map object, such as a building you dont like, replace deletevehicle _x with hideobject _x

    deletevehicle would run on server most likely, while hideobject MUST be run on each client so it cant be in a !isserver block in the init.sqf
     
    ElDubya likes this.

Share This Page