Interface Activation

OpenMW version: 0.49.0
core.API_REVISION: 68 *

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

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 the openmw.types package.

  • #function handler : The handler.

#number Activation.version

Interface version