mirror of
				https://codeberg.org/tenplus1/mobs_redo.git
				synced 2025-11-03 16:55:28 +01:00 
			
		
		
		
	added 'on_map_load' setting to mobs:spawn function to spawn mob in newly loaded areas of map only
This commit is contained in:
		
							
								
								
									
										3
									
								
								api.txt
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								api.txt
									
									
									
									
									
								
							@@ -383,6 +383,9 @@ default setting and can be omitted:
 | 
			
		||||
                          anytime
 | 
			
		||||
    'on_spawn'            is a custom function which runs after mob has spawned
 | 
			
		||||
                          and gives self and pos values.
 | 
			
		||||
    'on_map_load'         when true mobs will have a chance of spawning only
 | 
			
		||||
                          when new areas of map are loaded, interval will not be
 | 
			
		||||
                          used.
 | 
			
		||||
 | 
			
		||||
The older spawn functions are still active and working but have no defaults like
 | 
			
		||||
the mobs:spawn, so it is recommended to use the above instead.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user