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>
42 lines
1.0 KiB
Markdown
42 lines
1.0 KiB
Markdown
---
|
|
layout: wiki
|
|
title: Wirecutter Framework
|
|
description: Explains how to set-up items, backpacks and vests with ACE3 wirecutter system.
|
|
group: framework
|
|
order: 5
|
|
parent: wiki
|
|
mod: ace
|
|
version:
|
|
major: 3
|
|
minor: 16
|
|
patch: 0
|
|
---
|
|
|
|
## 1. Config Values
|
|
|
|
The properties below control whether an item is considered a wirecutter. Worn items (vests and backpacks) can have "built-in" wirecutters with the `ace_logistics_wirecutter_hasWirecutter` property.
|
|
```cpp
|
|
class CfgWeapons {
|
|
class MyVest {
|
|
ace_logistics_wirecutter_hasWirecutter = 1; //1 for true, 0 for false.
|
|
};
|
|
class MyItem {
|
|
ACE_isWirecutter = 1; //1 for true, 0 for false.
|
|
};
|
|
};
|
|
class CfgVehicles {
|
|
class MyBackpack {
|
|
ace_logistics_wirecutter_hasWirecutter = 1; //1 for true, 0 for false.
|
|
};
|
|
};
|
|
```
|
|
|
|
|
|
## 2. Events
|
|
|
|
### 2.1 Listenable
|
|
|
|
| Event Name | Description | Passed Parameter(s) | Locality |
|
|
| ---------- | ----------- | ------------------- | -------- |
|
|
| `ace_wireCuttingStarted` | Wire cutting started | `[_unit, _fence]` | Global |
|