$modelname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (increased quality)
Line 3: Line 3:
==Description==
==Description==


$modelname (filename)
$modelname "path/to/model.mdl"


==Parameters==
==Parameters==
* (filename) This filename should be relative to the models/ directory in the mod. Should be in douple quotes.
* This filename should be relative to the models/ directory in the mod.


==Example==
==Example==
'''$modelname "weapons/shell.mdl"'''<br />
'''$modelname "weapons/shell.mdl"'''
$cdmaterials "models/weapons/"<br />
$cdmaterials "models/weapons/"
$model "Shell" "shell.smd"<br />
$model "Shell" "shell.smd"
$sequence "idle" "shell.smd"
$sequence "idle" "shell.smd"

Revision as of 20:50, 13 October 2007

Specifies the filename of the compiled model.

Description

$modelname "path/to/model.mdl"

Parameters

  • This filename should be relative to the models/ directory in the mod.

Example

$modelname "weapons/shell.mdl"
$cdmaterials "models/weapons/"
$model "Shell" "shell.smd"
$sequence "idle" "shell.smd"