Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Origineel:
- function SpawnEnemy()
- {
- if(MySpawnedEnemy == none)
- {
- MySpawnedEnemy = spawn(class'AwesomeEnemy_Minion', self,, Location);
- }
- }
- //Met aanpassing:
- function SpawnEnemy()
- {
- local int i;
- if(MySpawnedEnemy == none)
- {
- i = Rand(2);
- if(i == 0)
- {
- MySpawnedEnemy = spawn(class'AwesomeEnemy_Minion', self,, Location);
- }
- else if(i == 1)
- {
- MySpawnedEnemy = spawn(class'AwesomeEnemy_MinionFast', self,, Location);
- }
- else
- {
- return;
- }
- }
- }
Add Comment
Please, Sign In to add comment