====== _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: - [[Hooks]]: Call the [[builders:placeablesvariables#OnLock|OnLock]] hook if defined. - Visual effects: Visual effects used [[builders:placeablesvariables#lock_vfx*]], and [[builders:placeablesvariables#lock_vfx_player*]]. - Linked door: If door is linked (i.e no [[builders:placeablesvariables#door_lock_unlinked|door_lock_unlinked]]) close and lock the other door too (and play [[builders:placeablesvariables#lock_vfx*]] on the other door). ===== Related things ===== [[builders:placeablesvariables|Variables in the placeables]]\\ [[Hooks]]\\ [[_gen_door_are]]\\ [[_gen_door_clo]]\\ [[_gen_door_dam]]\\ [[_gen_door_fai]]\\ [[_gen_door_ope]]\\ [[_gen_door_unl]]