ACE3/docs/wiki/framework/magazine-repack-framework.md
Mike-MF 52c19d53af
Magazine Repack - Add ability to disable repacking via class (#10232)
* Magazine Repack - Add ability to disable repacking via class

* Update addons/magazinerepack/functions/fnc_getMagazineChildren.sqf

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* Bretts suggestion

* Documentation

* Apply suggestions from code review

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Review missed a line

* Fix getting number instead of config & microoptimisation

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-08-20 17:24:58 -05:00

27 lines
406 B
Markdown

---
layout: wiki
title: Magazine Repack Framework
description: Explains how to disable repacking.
group: framework
order: 5
parent: wiki
mod: ace
version:
major: 3
minor: 18
patch: 0
---
## 1. Config Values
### 1.1 Disable Magazine Repacking
```cpp
class CfgMagazines {
class MyMagazine {
// Disables the ability to repack this magazine
ace_disableRepacking = 1;
};
};
```