1. Home
  2. Unity RTS Engine
  3. Units
  4. APC Unit Component

APC Unit Component

The APC component allows units as well as buildings to call units and store them and eject them. Both units and buildings use the same component, the only difference is that units can store other units, move and then eject them in another place in the map.


Adding Units:

  1. Interaction Pos: Transform that represents the position that a unit must go to to enter the APC.
  2. Allow All Units: When enabled, then all units can be stored in this APC.
  3. Unit Exception List: When the above option is disabled, then input the codes of the units that can’t use this APC in this list.
  4. Max Amount: Maximum amount of units that this APC allows at the same time.
  5. Add Unit Audio: Audio clip played when a unit enters the APC.

Ejecting Units:

  1. Eject One Unit Task Category: When a unit is inside the APC, a task with the unit’s icon will be drawn on the task panel if the APC is selected that when clicked, ejects the correspondent unit. This is the task category of that task.
  2. Eject All Only: When enabled, then the player won’t be able to eject units from the APC one by one but only eject them all at once.
  3. Eject All Task Category: Task category for that the task that ejects all units from the APC.
  4. Eject All Icon: The icon of the task that allows the player to eject all units from the APC.
  5. Remove Unit Audio: Audio clip played when a unit is ejected from the APC.

Calling Units:

  1. Can Call Units: When enabled, the APC will able to call units inside a certain range to store them. This is useful for safe buildings where you want to hide workers/civilians if your town is getting attacked for example. All the following fields must be only considered if this option is enabled.
  2. Call Units Task Category: Task category of the task that calls for in range units.
  3. Calling Range: All units within this distance from the APC will be called to enter this APC.
  4. Call Units Icon: Icon of the task that calls in range units.
  5. Stop Units From Attacking: Force in range units to stop attacking (if they are doing so) and ask them to enter the APC?
  6. Call Units Audio: Audio clip played when the APC calls for in range units.

Other Settings:

  1. Release On Destroy: When the APC is destroyed, should units that are stored inside it be released or should they be destroyed as well?

For more information about the task categories, please check the UI Manager documentation page.

How can we help?