Difference between revisions of "Creating a Survival level"
(→SurvivalWave) |
|||
Line 16: | Line 16: | ||
== SurvivalWave == | == SurvivalWave == | ||
− | + | The [[SurvivalWave WorldScript]] will manage a wave of enemies. When this script is executed it will update the HUD wave info and begin triggering SubWaves, starting with SubWave0, with an interval of parameter 'SubWaveDelay'(milliseconds). Once all SubWaves have been triggered it will begin checking for remaining enemy actors, (a SubWave with no connections will count as the last SubWave), when all enemy actors have been eliminated the "OnFinished" parameter is triggered. | |
<br />[[File:Survivalwave.png]] | <br />[[File:Survivalwave.png]] |
Revision as of 10:06, 26 July 2017
This is a basic guide for creating a survival level.
Contents
Game Mode
First of all you need to set up the correct game mode. Pick Survival in the GameMode tab in the layers window, and then configure the properties.
- StartingWeapons: Here you can choose what weapons the players will spawn with.
- ExpScale: Scales the amount of experience players gain by killing enemies. A value of 1 equals 100% of experience gained. A value of 0 is used in the official survival mode as experience is given with the GiveExperience worldscript between waves.
- TotalWaveCount: Input the amount of waves your level will have to make the HUD work properly.
World Scripts
These are the worldscripts most commonly used when making a survival level.
SurvivalWave
The SurvivalWave WorldScript will manage a wave of enemies. When this script is executed it will update the HUD wave info and begin triggering SubWaves, starting with SubWave0, with an interval of parameter 'SubWaveDelay'(milliseconds). Once all SubWaves have been triggered it will begin checking for remaining enemy actors, (a SubWave with no connections will count as the last SubWave), when all enemy actors have been eliminated the "OnFinished" parameter is triggered.
SurvivalEnemySpawn
When executed this script will spawn the selected unit at the position of a random SurvivalEnemySpawnPoint with the same filter.
- UnitType: Unit to spawn.
- NumberToSpawn: Amount of units to spawn when executed.
- NumberPerPlayer: Amount of units per player to spawn.
- MaxToSpawn: No more than this number of units will be spawned when executed.
- SpawnPointFilter: Units will only spawn on a SurvivalEnemySpawnPoint with the same filter.
SurvivalEnemySpawnPoint
Units spawned by SurvivalEnemySpawn can only be spawned at the locations of these scripts.
- Filter: Match this with the filter on SurvivalEnemySpawn to have specific units spawn at this location.
- SpawnEffect: Effect played when unit is spawned.
- SpawnSound: Sound played when unit is spawned.
Starting & Finishing a level
Place a 'LevelStart' world script where you want the players to spawn and re-spawn. Execute the 'EndOfCampaign' world script to end the level.