The Ship Basics: Interactions: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (recategorized)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Usage of Interactive's ==
{{alias|#|any arbitrary number}}
== Creating Doors ==
#Create a [[prop_door_rotating]] and set its World Model to a door.
#Name it Door_#
#Place it in your doorway
#Make a brush that completely surrounds the door with the material <code>tools/toolsinteractive</code>
#Select the brush and make it a [[ship_base_interaction]]
##Set its Parent keyvalue and Target Entity keyvalue to Door_#
##Set its Context Sensitive Interface Menu to Door
##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]].


This is basically what I have been able to make using Interactive's . If you know how to do something or someone has made an error please edit it.
== Creating Cabinet/Wardrobe ==


 
#Create a [[ship_container]] named Dresser_# and choose the world model as some sort of container (e.g. a dresser)
 
##Set Container Capacity to preferred setting
== Doors ==
##Set Inventory Menu Title to correspond with the model
:1)Spawn a entitie Called Prop_door_rotating
#Create a brush that covers the container with the material <code>tools/toolsinteractive</code>
Name it Door_1 Or whatever u are going to use
#Cover sides that should not be interactive or are not visible with <code>tools/toolsnoninteractive</code>
Place it in your doorway
#Make that brush into a [[ship_base_interaction]]
Make a cube completely Surrounding the door
##Set its Target Entity to Dresser_#
Use the texture tools/toolsinteractive
##Set its Context Sensitive Interface Menu to Container
Select the interactive Cube and press ctrl + t
##Set its Default Action to Open
Go to Parent
[[Category:The Ship]]
Type in the name of your door
Go to Target entity Put in the name of your door\
Go to Context Sensitive InterFace Menu.
Go to the scroll down menu and select Door.

Latest revision as of 14:49, 28 December 2006

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

  1. Create a ship_container named Dresser_# and choose the world model as some sort of container (e.g. a dresser)
    1. Set Container Capacity to preferred setting
    2. Set Inventory Menu Title to correspond with the model
  2. Create a brush that covers the container with the material tools/toolsinteractive
  3. Cover sides that should not be interactive or are not visible with tools/toolsnoninteractive
  4. Make that brush into a ship_base_interaction
    1. Set its Target Entity to Dresser_#
    2. Set its Context Sensitive Interface Menu to Container
    3. Set its Default Action to Open