mirror of
				https://codeberg.org/tenplus1/mobs_redo.git
				synced 2025-10-31 07:35:24 +01:00 
			
		
		
		
	make mobs:line_of_sight() global
This commit is contained in:
		
							
								
								
									
										11
									
								
								api.txt
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								api.txt
									
									
									
									
									
								
							| @@ -559,6 +559,17 @@ Certain variables need to be set before using the above functions: | ||||
|    'self.driver_scale'      sets driver scale for mobs larger than {x=1, y=1} | ||||
|  | ||||
|  | ||||
| mobs:line_of_sight(self, pos1, pos2, stepsize) | ||||
|  | ||||
| This function is for use within the mobs definition for special use cases and | ||||
| returns true if a mob can see the player or victim. | ||||
|  | ||||
| ...'self' mob information | ||||
|    'pos1' position of mob | ||||
|    'pos2' position of vistim or player | ||||
|    'stepsize' usually set to 1 | ||||
|  | ||||
|  | ||||
| External Settings for "minetest.conf" | ||||
| ------------------------------------ | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user