ACE3/docs/wiki/framework/disposables-framework.md
jonpas 1df3a73461 Add version information to most wiki feature and framework pages (#4303)
* Update documentation guidelines

* Add version info part 1

* Add version info part 2

* Add removed in version to frontmatter and tag testmissions as removed

* Add version info part 3
2016-08-30 15:49:04 +02:00

44 lines
1.3 KiB
Markdown

---
layout: wiki
title: Disposables Framework
description: Explains how to set-up custom disposable launchers with the ACE3 disposables system.
group: framework
order: 5
parent: wiki
mod: ace
version:
major: 3
minor: 0
patch: 0
---
<div class="panel callout">
<h5>Note:</h5>
<p>This is just the necessary to make a launcher disposable, this is not a guide to make your own launcher.</p>
</div>
## 1. Making a launcher disposable
### 1.1 CfgWeapons
```cpp
class CfgWeapons {
class Launcher_Base_F;
class launch_banana: Launcher_Base_F {
ACE_UsedTube = "launch_banana_Used_F"; // The class name of the used tube
magazines[] = {"ACE_PreloadedMissileDummy"}; // The dummy magazine
};
class launch_banana_Used_F: launch_banana { // The used tube should be a sub class of the disposable launcher
scope = 1;
ACE_isUsedLauncher = 1;
author = "grandBanana";
displayName = "Used banana launcher";
descriptionShort = "A used banana launcher";
magazines[] = {"ACE_FiredMissileDummy"}; // This will disable the used launcher class from being fired again
//picture = ""; // Not supported yet
//model = ""; // Not supported yet
weaponPoolAvailable = 0;
};
};
```