The Ship Basics: Interactions: Difference between revisions
Jump to navigation
Jump to search
Note:For the sake of this article,
No edit summary |
m (recategorized) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== | {{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]]. | |||
== 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 <code>tools/toolsinteractive</code> | |||
#Cover sides that should not be interactive or are not visible with <code>tools/toolsnoninteractive</code> | |||
#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 | |||
[[Category:The Ship]] | |||
: | |||
Latest revision as of 14:49, 28 December 2006

#
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