Random Event
Posted: Fri Nov 09, 2018 10:17 pm
Hello.
I need a help.
Can I force random event in a ruleset? I am trying to make spawn of some random units. It could be 10 Grunts, 6 Machinegunners or 2 Half-tracks for example. So I need to know the way of making random spawns.
Here is the code:
I need a help.
Can I force random event in a ruleset? I am trying to make spawn of some random units. It could be 10 Grunts, 6 Machinegunners or 2 Half-tracks for example. So I need to know the way of making random spawns.
Here is the code:
Code: Select all
SpawnObjects()
{
Formation("Box");
Direction(0);
Region("@.engine.name");
AddType("army.unit.grunt");
AddType("army.unit.machinegunner");
AddType("army.unit.halftrack");
}