main
			
			
		
		
							parent
							
								
									464017ef70
								
							
						
					
					
						commit
						194d3e6130
					
				|  | @ -243,10 +243,16 @@ command /skybattle_listspawners <number>: | ||||||
| 
 | 
 | ||||||
| command /spawnteam <number> <number>: | command /spawnteam <number> <number>: | ||||||
|     trigger: |     trigger: | ||||||
|  |         set {skybattle::current_arena} to 0 | ||||||
|         spawnteam(arg-1, arg-2) |         spawnteam(arg-1, arg-2) | ||||||
| 
 | 
 | ||||||
| function spawnteam(team: integer, spawner: integer): | function spawnteam(team: integer, spawner: integer): | ||||||
|     loop entries of team "IDList%{_team}%": |     loop entries of team "IDList%{_team}%": | ||||||
|  |         broadcast {_team} | ||||||
|  |         broadcast {_spawner} | ||||||
|  |         broadcast {skybattle::current_arena} | ||||||
|  |         if {skybattle::current_arena} is none: | ||||||
|  |             teleport loop-value to location at {skybattle::arena%{skybattle::current_arena}%::spawn_location::%{_spawner}%} | ||||||
|         teleport loop-value to location at {skybattle::arena%{skybattle::current_arena}%::spawn_location::%{_spawner}%} |         teleport loop-value to location at {skybattle::arena%{skybattle::current_arena}%::spawn_location::%{_spawner}%} | ||||||
|         set loop-value's gamemode to survival |         set loop-value's gamemode to survival | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue