mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
52c19d53af
* 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>
27 lines
406 B
Markdown
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;
|
|
};
|
|
};
|
|
```
|