Droid Dispensers

Legion Studios' droid dispensers, allowing Zeuses to have AI engage players quickly and take some of the load off of the Zeuses.

1. Group Configuration

Droid Dispensers use CfgGroups classes for their spawning logic. Groups can be enabled/disabled at the faction, category, and group levels. The ls_dispenser_available variable controls whether something should be shown and has three states:

  • -1 - Hidden

  • 0 - Use value of the higher class (default)

  • 1 - Shown

1.1 Examples

Group1 is available, but not Group2.

class CfgGroups {
    class East {
        class MyFaction {
            class Infantry {
                class Group1 {
                    ls_dispenser_available = 1;
                };
                class Group2 {
                    // ...
                };
            };
        };
    };
};

All groups in Infantry are available by default, but Group1 is disabled.

1.2 Misc

The group UI will show the icon of the faction as defined in CfgFactionClasses. In the examples above, it would look at "CfgFactionClasses" >> "MyFaction" >> "icon" for the icon.

If no icon is found, it will use a blank square texture that is the side of the faction instead.

For groups, the group's icon (set in the group class itself) will be used and be colored to the faction's side.

2. Module Configuration

You can configure your own Zeus modules to make it easy for Zeuses to spawn your own Droids without making them select them via the module GUI.

3. Functions

3.1 ls_dispenser_fnc_activate

Description

Activates a droid dispenser and starts the loop for droid dispensers to spawn units if needed. Spawn group must either be an array of units or a string pointing to a group (same as ls_dispenser_group in module config).

Parameters

Index
Description
Datatype(s)
Default Value

0

Dispenser

Object

1

Spawn group

String, Array

Return Value

None

3.2 ls_dispenser_fnc_deactivate

Description

Deactivates a droid dispenser.

Parameters

Index
Description
Datatype(s)
Default Value

0

Dispenser

Object

Return Value

None

3.3 ls_dispenser_fnc_setSpawnGroup

Description

Sets the spawn group of a given droid dispenser. Handles changing the side of the droid dispenser's UAV crew if the new group is of a different side.

Parameters

Index
Description
Datatype(s)
Default Value

0

Dispenser

Object

1

Spawn group

String, Array

Return Value

None

3.4 ls_dispenser_fnc_dropDispenser

Description

Spawns a falling dispenser at the given position, note that the altitude is used directly, so spawning at [x, y, 0] will cause it to immediately land on the ground. We reccomend a minimum height of 1000m. See Module Configurationarrow-up-right for more information on the dispenser parameters.

Parameters

Index
Description
Datatype(s)
Default Value

0

Dispenser params

Hashmap

1

PositionATL

Array

2

Velocity

Array

[0, 0, -100]

Return Value

The created projectile

Examples

Last updated