build_model
Writes a Source 2 .vmdl document for a mesh already in the addon, matching the shape the game compiler accepts. Returns the written path; set overwrite to replace an existing file.
Instructions
Write a Source 2 model document (.vmdl) for a mesh that is already inside the addon.
`mesh` is addon-relative (e.g. models/probe/probe.dmx). The document copies the shape the
game's own compiler accepts — compile it on a host with resourcecompiler afterwards
(build_start). Returns the written path. Use overwrite=true to replace an existing .vmdl.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | No | Game id: one of cs2, deadlock | cs2 |
| mesh | Yes | ||
| name | Yes | ||
| addon | Yes | Addon name: lowercase [a-z0-9_], e.g. 'jump_arena' | |
| overwrite | No | ||
| translate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |