mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 15:26:57 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			457 B
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			457 B
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
Built-in events
 | 
						|
===============
 | 
						|
 | 
						|
Any script can send to any actor (except player, for player will be ignored) events ``StartAIPackage`` and ``RemoveAIPackages``.
 | 
						|
The effect is equivalent to calling ``interfaces.AI.startPackage`` or ``interfaces.AI.removePackages`` in a local script on this actor.
 | 
						|
 | 
						|
Examples:
 | 
						|
 | 
						|
.. code-block:: Lua
 | 
						|
 | 
						|
    actor:sendEvent('StartAIPackage', {type='Combat', target=self.object})
 | 
						|
    actor:sendEvent('RemoveAIPackages', 'Pursue')
 | 
						|
 |