- Joined
- Apr 13, 2017
- Messages
- 157
Well this is a spawn system from one of my friend's map(I'm not gonna state him until he replies here and says that this is his creation).
So I need you to compare the two triggers to show which is better for cleaning leaks and which is more optimized.
Only 1 variable was used in each trigger
Hope you can help him find the right one, and if there are other mistakes in the trigger, please tell me
So I need you to compare the two triggers to show which is better for cleaning leaks and which is more optimized.
Only 1 variable was used in each trigger
Code:
SpawnPoint - The Location where units are spawned
spawn1 - Region.
-
Spawn
-
Events
- Time - Every 45.00 seconds of game time
-
Conditions
- GameOver Equal to False
-
Actions
- Set SpawnPoint = (Center of spawn1 <gen>)
- Unit - Create 1 Soldier for Player 11 (Dark Green) at SpawnPoint facing Default building facing degrees
- Custom script: call RemoveLocation(udg_SpawnPoint)
- Set HumanSpawnPoint = (Center of spawn1 <gen>)
- Unit - Create 1 Milita for Player 11 (Dark Green) at SpawnPoint facing Default building facing degrees
- Custom script: call RemoveLocation(udg_SpawnPoint)
- Set HumanSpawnPoint = (Center of spawn1 <gen>)
- Unit - Create 1 Footman for Player 11 (Dark Green) at SpawnPoint facing Default building facing degrees
- Custom script: call RemoveLocation(udg_SpawnPoint)
- Set HumanSpawnPoint = (Center of spawn1 <gen>)
- Unit - Create 1 Rifleman for Player 11 (Dark Green) at SpawnPoint facing Default building facing degrees
- Custom script: call RemoveLocation(udg_SpawnPoint)
-
Events
-
Spawn
-
Events
- Time - Every 45.00 seconds of game time
-
Conditions
- GameOver Equal to False
-
Actions
- Set SpawnPoint = (Center of spawn1 <gen>)
- Unit - Create 1 Soldier for Player 11 (Dark Green) at SpawnPoint facing Default building facing degrees
- Unit - Create 1 Milita for Player 11 (Dark Green) at SpawnPoint facing Default building facing degrees
- Unit - Create 1 Footman for Player 11 (Dark Green) at SpawnPoint facing Default building facing degrees
- Unit - Create 1 Rifleman for Player 11 (Dark Green) at SpawnPoint facing Default building facing degrees
- Custom script: call RemoveLocation(udg_SpawnPoint)
-
Events
Hope you can help him find the right one, and if there are other mistakes in the trigger, please tell me