mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 09:56:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			408 B
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			408 B
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
| AI packages
 | |
| ============
 | |
| 
 | |
| .. include:: version.rst
 | |
| 
 | |
| .. toctree::
 | |
|     :hidden:
 | |
|     :glob:
 | |
| 
 | |
|     ai/*
 | |
| 
 | |
| Starting an AI package
 | |
| ----------------------
 | |
| 
 | |
| There are two ways to start AI package:
 | |
| 
 | |
| .. code-block:: Lua
 | |
| 
 | |
|     -- from local script add package to self
 | |
|     local AI = require('openmw.interfaces').AI
 | |
|     AI.startPackage(options)
 | |
| 
 | |
|     -- via event to any actor
 | |
|     actor:sendEvent('StartAIPackage', options)
 |