Skip to content

Infantry Spawner

Hypoxic edited this page Aug 24, 2025 · 3 revisions

Infantry Spawner

Module Description

Creates a spawner that spawns infantry classes provided by the user at regular intervals. Highly customizable.

Module Properties

See Module Properties

isGlobal = 0;
isTriggerActivated = 1;
isDisposable = 0;
is3DEN = 1;

Module Arguments

Side

  • Description:
    The side that the spawned units belongs to.
  • Default:
    OPFOR

Units

  • Description:
    Array of unit classes from CfgVehicles. To increase the chances of a particular class being spawned, add additional instances of that class to the array.
  • Default:
    ['O_Soldier_TL_F', 'O_Soldier_GL_F', 'O_Soldier_F', 'O_soldier_AR_F']

Unit Limit

  • Description:
    Maximum amount of units this spawner creates. Will wait to spawn more if there are alive units greater than or equal to this value.
  • Accepts:
    Integer
  • Default:
    16

Units Per Squad

  • Description:
    Number of units to spawn per squad.
  • Accepts:
    Integer
  • Default:
    8

Unit Respawn Time

  • Description:
    Time until the module spawns additional units.
  • Default:
    15

Respawn Tickets

  • Description:
    Number of respawns the module will perform before shutting down. This is a total unit amount, not a respawn instance amount.
  • Default:
    64

Wait For Full Squad

  • Description:
    Waits for the available unit limit to reach a point where a full squad can be spawned at once. Otherwise, it will continue to trickle in units as there are available slots.
  • Default:
    True

Unit Logic

  • Description:
    Logic that the units perform when spawning. Use NONE if you want to do your own scripting with the expression block below.
  • Default:
    Patrol

Expression

  • Description:
    Code to execute on each group that is spawned. Passed arguments are:
    <0: Group, 1: Waypoints>
  • Default:
    True

Object Synchronization

Accepted Objects

  • Trigger (Optional)
  • Spawner Waypoint Module (MEH_ModuleSpawnerWaypoint) (Optional)

Trigger Effects

Activation

  • Activation of the synched trigger spawns the first squad and starts the loop logic for additional spawns.

Deactivation

  • Trigger does NOT deactivate the module. The module either deactivates itself when the tickets run out, or when an enemy unit comes within its deactivation radius.

Clone this wiki locally