User Tools

Site Tools


cerea1:builders:gen_door_unl

_gen_door_unl.nss

Usage

Thsi script is used as a OnUnLock 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 OnUnLock hook if defined.
  2. Visual effects: Visual effects used unlock_vfx*, and unlock_vfx_player*.
  3. Keep locked: If door is supposed to be kept locked door_keep_locked on door or door_keep_locked on area close door immediately.
  4. Linked door: If door is linked, unlock the linked door (play unlock_vfx*).
  5. Closing: Start closing timer.
cerea1/builders/gen_door_unl.txt · Last modified: 2015/05/03 12:46 by 127.0.0.1