Skip to content

Modules

mjc4wilton edited this page Jul 20, 2020 · 1 revision

Modules listed on this page are available for use in the EDEN editor.

NOTE: The "Prohibit Backpack On Chest" module is removed. The setting can now be changed via CBA settings instead.

Backpack On Chest

Description:

Puts the backpack of synchronized units on their chest and adds an additional backpack.

Properties:

Backpack classname:

Backpack, which should be added, after the current backpack was moved the the chest.

Just the classname without quotation marks.

Example: B_Parachute

Delay:

To make sure that any script, which modifies the units backpack is executed, before the backpack is put on the chest.

Time in seconds.

Example: 3 The backpack would be moved to the chest after a delay of 3 seconds.

Synchronizing with triggers:

You can synchronize this module with any amount of triggers. In this case the module will be activated only after all trigger conditions are met.

Add Chestpack

Description:

Adds a chestpack to all synchronized units.

Properties:

Chestpack classname:

Just the classname without quotation marks.

Example: B_Carryall_cbr

Chestpack items:

Including weapons, magazines etc.

Multiple items have to be separated by comma. A single item can either be just the classname of the desired item or an array, which is structured as follows: [classname, amount] All classnames have to have quotation marks.

Example: ["FirstAidKit",3], "hgun_P07_F", ["16Rnd_9x21_Mag",4] This would add three Firstaidkits, a single P07 and four 16Rnd 9mm magazines.

Chestpack magazines:

Use this line just for adding partially full magazines. I recommend using ‘Chestpack items’ for adding full magazines.

Multiple magazines have to be separated by comma. A single magazines is an array, which consists of the classname (with quotation marks) and the amount.

Example: ["30Rnd_65x39_caseless_mag",20], ["30Rnd_65x39_caseless_mag_Tracer",10] This would add a normal 6.5 magazine holding 20 rounds and a 6.5 tracer magazine holding 10 rounds.

Additional Code:

This can be useful if you want to add a texture to the chestpack etc.

_this referes to the chestpack container (see zade_boc_fnc_chestpackContainer for more details)

Example: _this setObjectTextureGlobal [0, "#(rgb,8,8,3)color(0,0,1,1)"];

Synchronizing with triggers:

You can synchronize this module with any amount of triggers. In this case the module will be activated only after all trigger conditions are met.