About: Close and lock doors   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

This can be done with the script below with just an added line of code. Keep in mind that the door can't lock until after it is closed. Therefore, the Lock command must be delayed as well. Add this script to the door's OnOpen script handle. Change the number 600.0f to any number; this is the delay in seconds before the door closes. The Word TRUE will lock the door. FALSE will Unlock the door. OBJECT_SELF represents the object that the script is attached to--in this case, the door.

AttributesValues
rdfs:label
  • Close and lock doors
rdfs:comment
  • This can be done with the script below with just an added line of code. Keep in mind that the door can't lock until after it is closed. Therefore, the Lock command must be delayed as well. Add this script to the door's OnOpen script handle. Change the number 600.0f to any number; this is the delay in seconds before the door closes. The Word TRUE will lock the door. FALSE will Unlock the door. OBJECT_SELF represents the object that the script is attached to--in this case, the door.
  • This can be done with the script above with just on added line of code. Keep in mind that the door can’t lock until after it is closed. So the Lock command must be delayed as well. Add this script to the doors OnOpen script handle. Change the number 15.0f to whatever. This is the delay in seconds before the door closes. The Word TRUE will lock the door. FALSE will Unlock the door. OBJECT_SELF represents the object that the script is attached to. In this case, the door.
dcterms:subject
abstract
  • This can be done with the script above with just on added line of code. Keep in mind that the door can’t lock until after it is closed. So the Lock command must be delayed as well. Add this script to the doors OnOpen script handle. Change the number 15.0f to whatever. This is the delay in seconds before the door closes. The Word TRUE will lock the door. FALSE will Unlock the door. OBJECT_SELF represents the object that the script is attached to. In this case, the door. ///////////////////////////////////////////////////////// // Auto-Close Door / Lock Door ///////////////////////////////////////////////////////// void main() { DelayCommand(15.0f,ActionCloseDoor(OBJECT_SELF)); DelayCommand(15.5f,SetLocked(OBJECT_SELF,TRUE)); } // End
  • This can be done with the script below with just an added line of code. Keep in mind that the door can't lock until after it is closed. Therefore, the Lock command must be delayed as well. Add this script to the door's OnOpen script handle. Change the number 600.0f to any number; this is the delay in seconds before the door closes. The Word TRUE will lock the door. FALSE will Unlock the door. OBJECT_SELF represents the object that the script is attached to--in this case, the door. ///////////////////////////////////////////////////////// // Auto-Close Door / Lock Door ///////////////////////////////////////////////////////// void main() { DelayCommand(600.0f,ActionCloseDoor(OBJECT_SELF)); DelayCommand(600.5f,SetLocked(OBJECT_SELF,TRUE)); } // End Builders might note that doors that close and lock a short period of time after being opened can impact combat, as the door's closing may separate party members, block ranged attacks, or prevent repositioning. Even outside combat, quickly re-locking doors can annoy players, particularly when spells, thieves' tools, or other items are required to re-open a just-opened door.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software