Guest User

Untitled

a guest
Jul 2nd, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Origineel:
  2. function SpawnEnemy()
  3. {
  4.     if(MySpawnedEnemy == none)
  5.     {
  6.             MySpawnedEnemy = spawn(class'AwesomeEnemy_Minion', self,, Location);
  7.     }
  8. }
  9.  
  10.  
  11. //Met aanpassing:
  12. function SpawnEnemy()
  13. {
  14.     local int i;
  15.  
  16.     if(MySpawnedEnemy == none)
  17.     {
  18.         i = Rand(2);
  19.  
  20.         if(i == 0)
  21.         {
  22.             MySpawnedEnemy = spawn(class'AwesomeEnemy_Minion', self,, Location);
  23.         }
  24.         else if(i == 1)
  25.         {
  26.             MySpawnedEnemy = spawn(class'AwesomeEnemy_MinionFast', self,, Location);
  27.         }
  28.         else
  29.         {
  30.             return;
  31.         }
  32.     }
  33. }
Add Comment
Please, Sign In to add comment