====== _gen_door_ope.nss ====== ===== Usage ===== Thsi script is used as a [[OnOpen]] 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#OnOpen|OnOpen]] hook if defined. - Animation: Play [[builders:placeablesvariables#open_animation]] or [[ANIMATION_LOOPING_GET_MID]]. - Visual effects: Visual effects used [[builders:placeablesvariables#open_vfx*]], and [[builders:placeablesvariables#open_vfx_player*]]. - Closing: Start closing timer. - Invisible: If player is invisible check if other near the door notice. - Linked door: If door is linked, open the linked door (play [[builders:placeablesvariables#open_vfx*]]), and check if those there notice door opening. ===== Related things ===== [[builders:placeablesvariables|Variables in the placeables]]\\ [[Hooks]]\\ [[_gen_door_are]]\\ [[_gen_door_clo]]\\ [[_gen_door_dam]]\\ [[_gen_door_fai]]\\ [[_gen_door_loc]]\\ [[_gen_door_unl]]