User Guide

69
HOW TO SPAWN OBJECTS
You can add flavor to your maps by spawning objects that execute scripted actions to change the nature and
course of the mission. For example, you can script civilians to walk across the map, requiring your
protection.
Be sure to spawn objects outside the map perimeter, as they appear out of thin air when spawned.
1. To spawn an object, use the action [Unit] Spawn – Object. Select the object and team to spawn.
To spawn an object without assigning it to a team, select a player’s default team.
2. Enter the X, Y, and Z coordinates on the map where the unit should spawn.
X, Y, and Z coordinates can be found in the status bar. If you do not specify a Z (height) coordinate, the
object is placed on the terrain. Do not place objects below ground.
3. Enter a figure for its angle of rotation. Object angles can be found in the Object Properties window for
each object.
SPAWNING UNNAMED UNITS
To spawn an unnamed unit, use the action [Unit] Spawn - unnamed unit on a team at a waypoint. You
must specify the team to which it belongs and its starting waypoint.
SPAWNING NAMED UNITS
You can also spawn units that have defined names. Naming spawned units is useful for missions in which a
known event must occur at some point during the mission. You can write scripts for the named unit, spawn
the unit, and then execute the scripts accordingly.
1. To spawn a named unit, use the action [Unit] Spawn – named unit on a team at a waypoint.
2. Select the name of the unit from the drop-down list, or enter a name of a unit that has not been created.
3. Select the type of unit, and assign it to a team.
4. Select a waypoint where the unit spawns.
After you define this particular script, the three question marks (???) in front of the listed action do not
necessarily indicate an error; they may indicate that this script is the first instance of the named entity.
Ignore them. Click OK, and your script may be fine.
HOW TO SCRIPT RE-INFORCEMENT TEAMS
Re-inforcement teams are a common tool in Command & Conquer Generals missions to keep the battle fresh. A
re-inforcement team is created off-screen and brought on-screen and into the battle, often via a transport.
Since these teams are created off-screen, they can be spawned, instead of accumulated in a base area.
When you are learning to build re-inforcement teams, use air transports to bring them to their
destination, as by default, these teams take a straight-line path to the target waypoint. A straight path
can be problematic for a land-based team. It is more challenging to script a re-inforcement team to
follow a set of waypoints across the terrain.
1. Select EDIT TEAMS from the Edit menu.
2. In the Team Builder, select the player, and then click ADD NEW TEAM.
3. Define the team as needed.
4. Under the Reinforcement tab, check the box next to Deploy by. From the drop-down, select a transport
to bring the team onto the map.
If you do not specify the Start team waypoint, then the waypoint specified in any script is the waypoint
where the team spawns.
NOTE: The game automatically creates enough transports to bring in the entire team. If you
want the team to be brought in one transport over multiple trips, you must create multiple
teams. Be sure to destroy each transport through scripts after it has completed its mission.
If you do not check the Deploy by box, the team enters the map on their own.
5. Select a waypoint at which to spawn the team. Make sure that it is outside the map perimeter.