Skip to content

Ghost Tutorial: Custom Assets

Jasdac edited this page Dec 17, 2024 · 8 revisions

Ghost

Ghost event

Props

Doors

  1. Create your door mesh.
  2. Add a prim where you want the pivot point to be and link the door to it, making the new prim the root prim.
  3. Drop the Door, Portal, and LocalConf scripts into the door.
  4. Edit the onStateEntry, onDoorOpen and onDoorClose sounds. The onStateEntry one will play while the player is dragging the door.
  5. Set the description to ["DO:INT",-1.57,0]. The first entry marks the door as an interior door. If it's an exterior door that should close when the ghost hunts, set it to DO:EXT instead. -1.57 is the max rotation of the door. The final value is a bitmask. See headers/Obstacles/Ghost/Door.lsh for more info. Set the description of any other prims to ROOT.
  6. Say SAVE to save it, then pick it up and put it in the monitor, and use the chat commands listed on the wiki index to test the door.

Clone this wiki locally