mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ac9ffb5276
Co-authored-by: LinkIsGrim <69561145+LinkIsGrim@users.noreply.github.com>
32 lines
705 B
Markdown
32 lines
705 B
Markdown
---
|
|
layout: wiki
|
|
title: Reload Launchers Framework
|
|
description: Explains how to set-up launchers with ACE3 reload launchers system.
|
|
group: framework
|
|
order: 5
|
|
parent: wiki
|
|
mod: ace
|
|
version:
|
|
major: 3
|
|
minor: 0
|
|
patch: 0
|
|
---
|
|
|
|
## 1. Adding third party reload
|
|
|
|
```cpp
|
|
class CfgWeapons {
|
|
class MyLauncher {
|
|
ace_reloadlaunchers_enabled = 1; // Allow your buddies to reload your launcher (0-disabled, 1-enabled)
|
|
};
|
|
};
|
|
```
|
|
|
|
## 2. Events
|
|
|
|
### 2.1 Listenable
|
|
|
|
| Event Name | Description | Passed Parameter(s) | Locality |
|
|
| ---------- | ----------- | ------------------- | -------- |
|
|
| `ace_reloadlaunchers_reloadLauncher` | Launcher reloaded | `[_unit, _target, _weapon, _magazine]` | Target |
|