Editing AI inventories?

hype2

New Member
the sarge AI thread is way too big to navigate through, so

where can i remove items from the ai inventory? radios for example we don't want on our server.
i think i got it removed


private ["_unit","_weapons","_weapon","_items","_unit_magazine_name","_item","_tool","_tools","_forEachIndex"];

_unit = _this select 0;
_weapons = _this select 1;
_items = _this select 2;
_tools = _this select 3;

removeAllWeapons _unit;

// the above doesnt remove the tools, need this as well
_unit removeweapon "ItemMap";
_unit removeweapon "ItemCompass";
_unit removeweapon "ItemRadio";

i changed ItemRadio to ItemKnife to test it but havent actually tested yet.

is this all i need to do to keep radios from spawning on AI?
and how do i make AI have more than one clip of whichever ammo they are using?
 
AI loadout can be configured in SAR_config. Ammo is limited to 1 mag per AI to prevent players farming them for ammo.
 
Back
Top