The Ship Basics: Interactions
Jump to navigation
Jump to search
Note:For the sake of this article,
#
represents 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
tools/toolsinteractive
- 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.
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
- Set Inventory Menu Title to correspond with the model
- Create a brush that covers the container with the material
tools/toolsinteractive
- Cover sides that should not be interactive or are not visible with
tools/toolsnoninteractive
- Make that brush into a ship_base_interaction
- Set its Target Entity to Dresser_#
- Set its Context Sensitive Interface Menu to Container
- Set its Default Action to Open