Table of Contents

_gen_door_loc.nss

Usage

Thsi script is used as a OnLock handler script of the door, placeables or secret doors.

This should be used by all doors. If special handing is required use Hooks to modify the behavior of this script.

What it does

This function will do following things:

  1. Hooks: Call the OnLock hook if defined.
  2. Visual effects: Visual effects used lock_vfx*, and lock_vfx_player*.
  3. Linked door: If door is linked (i.e no door_lock_unlinked) close and lock the other door too (and play lock_vfx* on the other door).

Variables in the placeables
Hooks
_gen_door_are
_gen_door_clo
_gen_door_dam
_gen_door_fai
_gen_door_ope
_gen_door_unl