Lesson 4 Creating players and teams
When making players you need to understand three things:
- A player can be computer controlled or player controlled (all teams, but the player's team, should be computer controlled)
- For each player you have to set who that player regards as friends, enemies or neutrals.
- For each player you can have any number of teams. Teams are logical groupings of units (e.g. "border patrol", "base guard", etc.)
Below is a video that will show you how to set up a simple singleplayer map with 3 players:
- Civilian player - has the team "prisoners" who are neutral to begin with.
- GLA player "BadGuy" - has three teams:
- Tower guards - start out by entering a tower and guarding it
- Patrol - run around a waypoint path, guarding it
- Guards - are all guarding an area between the player and the GLA
- China player "Player" - is controlled by the player and has a good deal of infantry.
This map also shows you why you need to set a teams state to "Aggressive", because these GLA troops don't shoot before they are shot at.
The map shows some elements of scripting you don't need to understand yet: freeing prisoners, setting up patrolling and guarding.
These subjects are all covered individually later, but it goes to show why dividing a computerplayer's units into teams is a good idea. Get map, zipped Show video
|