Wiki - Update cargo-framework.md (#9672)

* Update cargo-framework.md

* Update cargo-framework.md
This commit is contained in:
PabstMirror 2023-12-09 11:52:07 -06:00 committed by GitHub
parent 464ab0cefb
commit 11c1917e7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,16 +16,18 @@ version:
### 1.1 Preparing a vehicle for ACE3 cargo
{% raw %}
```cpp
class CfgVehicles {
class yourVehicleBaseClass {
ace_cargo_space = 4; // Cargo space your vehicle has
ace_cargo_hasCargo = 1; // Enables cargo to be loaded inside the vehicle (1-yes, 0-no)
ace_cargo_loadmasterTurrets = {{1}}; // If vehicle inherits from "Air", you can set this attribute.
ace_cargo_loadmasterTurrets[] = {{1}}; // If vehicle inherits from "Air", you can set this attribute.
// When sitting in the turret paths you define here, you can paradrop cargo items. By default, pilots and co-pilots can paradrop cargo items.
};
};
```
{% endraw %}
### 1.2 Making an object loadable