12: Forbid Item Looting [WIP] - 14aag/mission_template GitHub Wiki

Info dump. Instructions to follow.

Dissalowing certain items

The below code will allow you to make certain items un-lootable. They will be removed from inventory and the player will be warned about that. Change the example "Array" to the item class name in question. You can put multiple items in the array as long as they are separated per the below example.

["Array", "Array"](/14aag/mission_template/wiki/"Array",-"Array") call efn_inventory_fnc_forbidItems;

The line of code can be fired mid-mission or put in XEH_postInit in the Mission Template.