The Ship Basics: Interactions

From Valve Developer Community
Revision as of 00:14, 27 December 2006 by Sluttyhoe (talk | contribs)
Jump to navigation Jump to search
Note.pngNote:For the sake of this article, # represents any arbitrary number.

Creating Doors

  1. Create a prop_door_rotating and set its World Model to a door.
  2. Name it Door_#
  3. Place it in your doorway
  4. Make a brush that completely surrounds the door with the material tools/toolsinteractive
  5. Select the brush and make it a ship_base_interaction
    1. Set its Parent keyvalue and Target Entity keyvalue to Door_#
    2. Set its Context Sensitive Interface Menu to Door
    3. Set its Default Action to Open

Hopefully this sheds some light on how interactions work; to be more productive, use the door prefabs included in The Ship SDK.

Creating Cabinet/Wardrobe

Note.pngNote:For the sake of this article, # represents any arbitrary number.

Creating Doors

  1. Create a prop_door_rotating and set its World Model to a door.
  2. Name it Door_#
  3. Place it in your doorway
  4. Make a brush that completely surrounds the door with the material tools/toolsinteractive
  5. Select the brush and make it a ship_base_interaction
    1. Set its Parent keyvalue and Target Entity keyvalue to Door_#
    2. Set its Context Sensitive Interface Menu to Door
    3. Set its Default Action to Open

Creating Cabinet/Wardrobe

May not Work all the time just figuring it out :|

  1. Create a Ship_container and choose the world model as some sort of container (e.g a dresser)
  2. Name It Dresser_#
  3. Select the Ship_container and go to class info
    1. Set Container Capacity To preferred setting
    2. Set Inventory menu title to correspond with the model
  4. Place in a Cube with the material tools/toolsinteractive so that it covers where u want it to be able to open
  5. Colour all sides other then the main face that u see with tools/toolsnoninteractive
  6. Select The Interactive cube and open
    1. Set the Target Entity To Dresser_#
    2. Set The Context Sensitive Interface Menu to Container
    3. Set Default Action to Open

You should have a working Cabinet


P.s thank you to whomever fixed this up and made it look good