forge/arma/server/addons/task/functions/fnc_cargoModule.sqf
Jacob Schmidt 5576cc4746 Refactor task modules for improved parameter handling and logging
- Updated fnc_defuseModule, fnc_deliveryModule, fnc_destroyModule, fnc_hostageModule, fnc_hvtModule to enhance parameter retrieval and logging.
- Introduced error handling for missing task IDs across modules.
- Consolidated task initialization logic into fnc_startTask for better maintainability.
- Added fnc_cargoModule as a sync target for cargo entities in delivery tasks.
- Improved logging to provide clearer insights into task parameters and synced entities.
2026-04-17 19:34:21 -05:00

24 lines
586 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: IDSolutions
* Grouping module for cargo entities in a delivery task.
* This module has no logic of its own — it acts as a sync target so that
* cargo objects can be grouped and discovered by the parent delivery module
* via synchronizedObjects + typeOf "FORGE_Module_Cargo".
*
* Arguments:
* 0: Logic <OBJECT>
* 1: Units <ARRAY>
* 2: Activated <BOOL>
*
* Return Value:
* None
*
* Public: No
*/
params [["_logic", objNull, [objNull]], ["_units", [], [[]]], ["_activated", true, [true]]];
if !(_activated) exitWith {};