From Valve Developer Community
Jump to navigation
Jump to search

Available doc translations
…
English
Usage
Note:model, skin, body, and sequence KVs can be hidden individually with {{{no model}}}, {{{no skin}}}, {{{no body}}}, and {{{no sequence}}}, respectively.
Parameter |
Description |
Example |
Preview
|
prep2 |
Call this template with |prep2=1 to hide KVs added in Portal 2. |
{{KV Studiomodel|prep2=1}} |
Studiomodel:
- World Model (model) <string>
- The model this entity should appear as. 128-character limit.
- Skin (skin) <integer>
- Some models have multiple skins. This value selects from the index, starting with 0.
Tip:Hammer's model browser automatically updates this value if you use it to view different skins.
- Bodygroup (body) <integer>
- Some models have multiple submodels. This value selects from the index, starting with 0. May be overridden by animations and/or game code.
- Model Scale (modelscale) <float> (in all games since
)
- A multiplier for the size of the model.
Shadow:
- Disable Shadows (disableshadows) <boolean>
- Prevents the entity from creating cheap render-to-texture shadows, or lightmap shadows if the entity is a prop_static. Does not affect shadow mapping.
- Disable Receiving Shadows (disablereceiveshadows) <boolean>
- Prevent the entity from receiving dynamic shadows on itself.
- Shadow Cast Distance (shadowcastdist) <integer> !FGD
- Sets how far the entity casts dynamic shadows. 0 means default distance from the shadow_control entity.
|
No Parameter |
N/A |
{{KV Studiomodel}} |
Studiomodel:
|