S&box Wiki

Revision Difference

Using_Entities_That_Require_a_Mesh#552505

<cat>Hammer.Basics</cat>⤶ <title>Using Entities That Require a Mesh</title>⤶ ⤶ Some entities in hammer require a mesh to work function. Simply dragging them out from the entity will create the entity but it wont work.⤶ ⤶ ---⤶ ⤶ Firstly, any entity the requires a mesh to function is indicated by the " ⛶ " symbol in the entity creation tool. For this example we will be setting up a <page>push_volume</page>⤶ ⤶ Start off by creating a mesh, this will become your entity. Here I created a simply yellow box that I will turn into my push volume. The black mesh around the bottom is only there so we can find it after compiling.⤶ ⤶ <upload src="aaf9e/8dbdfbef06896eb.png" size="218039" name="image.png" />⤶ ⤶ Select your mesh in object mode, and click `"Tie Selected Meshes to Entity"` in the object properties dock.⤶ ⤶ <upload src="aaf9e/8dbdfbf4013fcf5.png" size="35198" name="image.png" />⤶ ⤶ Once clicked, it will transform into a <page>trigger_multiple</page>, and the `"Tie Selected Meshes to Entity"` button should now look something like:⤶ ⤶ <upload src="aaf9e/8dbdfbfa9708272.png" size="9956" name="image.png" />⤶ ⤶ to select the entity we want either, select it from dropdown by clicking the arrow, or we can start typing the name of the entity we want.⤶ ⤶ From there on you can customize the entity based off what you need.⤶ ⤶ <upload src="aaf9e/8dbdfc0f3c2b727.gif" size="2811222" name="Untitled video (1).gif" />