Revision Difference
Sandbox_Specific_Mapping#527676
<cat>Dev.Map</cat>
This page describes default gmod entity properties map makers can use to affect interactions of Sandbox features with the map.
# Preventing tools from being used on certain entities
You can use the **Sandbox Tool Whitelist** property on any entity in your map to allow only certain tools to affect the entity. This property can be found under the key ``gmod_allowtools`` in the entity report and with smart edit disabled.
The format for the value is a list of **tool class names** separated by a single space character. The **tool class name** is the file name of the tool inside the ``garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/tools/`` excluding the .lua file extension. It will also work with addons.
For example setting it to the following value:
```
colour button balloon light lamp dynamite thruster paint
```
Will only allow **Color, Button, Balloon, Light, Lamp, Dynamite, Thruster** and **Paint** Tools to be used on that entity.
This is what the "Color Room" in sandbox does.
Leaving the field empty will disallow all tools from being used on the entity.
Leaving the field empty will allow all tools to be used on the entity.
This field also affects the "Hold C for Context Menu and right click on the entity" feature.
# Preventing Physics Gun from being used on certain entities
Similarly you can use the **Allow Physics Gun** property on any entity to prevent the Physics Gun from being able to pick that entity up.
This is set to 'Yes' by default and can be found under the key `gmod_allowphysgun` in the entity report and with smart edit disabled, with a default value of 1.