Rusted Warfare Mod Workshop
All coursesCreative tools中文

Use your units as map reinforcements

Connect mod unit names, map objects and timed triggers

Work on a copy of a valid map

The included XML is a triggers object-layer fragment without terrain or map dimensions, copy a working TMX map and merge the object into its existing triggers group

Create the reinforcement object

unitAdd creates units, team:0 chooses the receiving team, delay:10s adds a delay and spawnUnits lists internal names with counts, choose a reachable location

<?xml version="1.0" encoding="UTF-8"?>
<!-- 合并到已有地图的 triggers 对象组 / Merge into an existing map triggers layer -->
<objectgroup name="triggers">
  <object name="academy_reinforcements" type="unitAdd" x="200" y="200" width="20" height="20">
    <properties>
      <property name="team" value="0"/>
      <property name="delay" value="10s"/>
      <property name="repeatCount" value="1"/>
      <property name="spawnUnits" value="rwa06Recon*2,rwa06Twin*1"/>
      <property name="globalMessage" value="学院增援抵达 / Academy reinforcements arrived"/>
    </properties>
  </object>
</objectgroup>

Check team and mod dependencies

Enable Field Academy when running the map and ensure team 0 exists, valid XML alone does not guarantee available units or teams, first confirm that all units can be spawned in the sandbox

Verify with messages and counts

Observe the message after ten seconds and count two recon vehicles plus one twin tank, if the message appears but units do not, inspect names and placement, if no message appears, inspect the layer and trigger conditions

Try it yourself

Add a second reinforcement object at thirty seconds with a different name and location

Open interactive lesson and download the companion mod