Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Difference between revisions of "setmodel"
From Quake Wiki
Line 4: | Line 4: | ||
Sets the model an entity will use. | Sets the model an entity will use. | ||
====Parameters:==== | ====Parameters:==== | ||
− | :<code>e</code> - The entity who's model is being set | + | :<code>e</code> - (entity) The entity who's model is being set |
− | :<code>path</code> - The path to the model file to set. Can be a model (.mdl), sprite (.spr) or map (.bsp) | + | :<code>path</code> - (string) The path to the model file to set. Can be a model (.mdl), sprite (.spr) or map (.bsp) |
====Returns:==== | ====Returns:==== | ||
:void | :void | ||
[[Category:QuakeC Function]] | [[Category:QuakeC Function]] |
Revision as of 00:55, 25 March 2013
Syntax:
void setmodel(entity e, string path)
Sets the model an entity will use.
Parameters:
e
- (entity) The entity who's model is being setpath
- (string) The path to the model file to set. Can be a model (.mdl), sprite (.spr) or map (.bsp)
Returns:
- void