ig.

Lever

new Lever()

Entity switch triggered by use / interaction instead of by collision. IMPORTANT: this is an abstract entity that should be extended.

Author:
  • Collin Hover - collinhover.com
Source:

autoToggle

Don't auto toggle lever open/close.

Default Value:
  • false
Source:

targetable

Default Value:
  • true
Source:

triggerable

Levers should not be triggered through collision.

Default Value:
  • false
Source:

initTypes()

Inits lever types.
- adds ig.EntityExtended.TYPE.LEVER to ig.EntityExtended#type
- adds ig.EntityExtended.TYPE.INTERACTIVE to ig.EntityExtended#type

Source: