Interface ActivationΒΆ
OpenMW version: 0.49.0
core.API_REVISION: 49 *
Usage:
require('openmw.interfaces').Activation
Type Activation
| Activation.addHandlerForObject(obj, handler) |
Add new activation handler for a specific object. |
| Activation.addHandlerForType(type, handler) |
Add new activation handler for a type of objects. |
| Activation.version |
Interface version |
Type Activation
Field(s)
- Activation.addHandlerForObject(obj, handler)
-
Add new activation handler for a specific object.
If
handler(object, actor)returns false, other handlers for the same object (including type handlers) will be skipped.Parameters
-
openmw.core#GameObject obj: The object. -
#function handler: The handler.
-
- Activation.addHandlerForType(type, handler)
-
Add new activation handler for a type of objects.
If
handler(object, actor)returns false, other handlers for the same object (including type handlers) will be skipped.Parameters
-
#any type: A type from theopenmw.typespackage. -
#function handler: The handler.
-
- #number Activation.version
-
Interface version