You can get reinforcements to spawn in on a set turn just using the editor but I think calling them with a trigger square needs to be scripted. Just look at how the game does it and then try to adapt it to what you want to do. I just looked and it would be something like...
Code: Select all
include "Functions.BSF"
include "tools.BSF"
include "ScenarioTools.BSF"
int hasSpawned;
FUNCTION Tick(side)
{
int i;
int id;
int unit;
for(i=0; i<GetUnitCount(0); i++)
{
id = GetUnitID(0, i);
if (GetUnitActive(id) == 1 && hasSpawned != 1)
{
if (GetUnitX(id) == GetAIPointX(??) && GetUnitY(id) == GetAIPointY(??))
{
unit = TeleportOrkSquad(??, ??, 0, 0, 0, "DEFFDRED");
unit = TeleportOrkSquad(??, ??, 0, 0, 0, "KRUMPA");
unit = TeleportOrkSquad(??, ??, 0, 0, 0, "NOBZ_SKORCHA");
unit = TeleportOrkSquad(??, ??, 0, 0, 0, "MORKANAUT");
unit = TeleportOrkSquad(??, ??, 0, 0, 0, "NOBZ_SLUGGA");
unit = TeleportOrkSquad(??, ??, 0, 0, 0, "BATTLEWAGONKANNON");
unit = TeleportOrkSquad(??, ??, 0, 0, 0, "FLASH_GITZ");
AddVizCamCenter(GetUnitX(unit), GetUnitY(unit));
hasSpawned = 1;
}
}
}
}
The first two ??s will be the victory point that actives the spawn and the others would be the x and y grid positions you want that unit to spawn in on.
Go into C:\Program Files (x86)\Steam\steamapps\common\Warhammer 40000 Sanctus Reach\Data\scripts and copy any file into C:\Users\user\Documents\My Games\SANCTUS\MULTIPLAYER\your campaign folder name\SCENARIOS and rename the new file to the exact same name as your map file that's in this folder, then delete everything in the file and replace it with this script. Not sure it will work but it will get you started if you want to experiment, just keep checking back to how the game's scripts do it.
This would be if Mogrok dies.
Code: Select all
include "Functions.BSF"
include "tools.BSF"
include "ScenarioTools.BSF"
int hasSpawned;
FUNCTION Tick(side)
{
int i;
int id;
int unit;
for(i=0; i<GetUnitCount(0); i++)
{
id = GetUnitID(0, i);
if (IsUnitType(id, "Mogrok") == 1)
{
if (GetUnitDead(id) == 1 && hasSpawned != 1)
{
unit = TeleportOrkSquad(??, ??, 0, 0, 0, "DEFFDRED");
unit = TeleportOrkSquad(??, ??, 0, 0, 0, "KRUMPA");
unit = TeleportOrkSquad(??, ??, 0, 0, 0, "NOBZ_SKORCHA");
unit = TeleportOrkSquad(??, ??, 0, 0, 0, "MORKANAUT");
unit = TeleportOrkSquad(??, ??, 0, 0, 0, "NOBZ_SLUGGA");
unit = TeleportOrkSquad(??, ??, 0, 0, 0, "BATTLEWAGONKANNON");
unit = TeleportOrkSquad(??, ??, 0, 0, 0, "FLASH_GITZ");
AddVizCamCenter(GetUnitX(unit), GetUnitY(unit));
hasSpawned = 1;
}
}
}
}