Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Difference between revisions of "setmodel"
From Quake Wiki
(Created page with "Syntax:<br/> <code>setmodel(entity e, string path)</code> Makes the entity <code>e</code> use the model that is found in the <code>path</code>. This model must be precached ...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Syntax: | + | ====Syntax:==== |
− | <code>setmodel(entity e, string path)</code> | + | <code>void setmodel(entity e, string path)</code> |
− | + | Sets the model an entity will use. | |
+ | ====Parameters:==== | ||
+ | :<code>e</code> - 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) | ||
+ | ====Returns:==== | ||
+ | :void | ||
+ | |||
+ | [[Category:QuakeC Function]] |
Revision as of 00:57, 25 March 2013
Syntax:
void setmodel(entity e, string path)
Sets the model an entity will use.
Parameters:
e
- The entity who's model is being setpath
- The path to the model file to set. Can be a model (.mdl), sprite (.spr) or map (.bsp)
Returns:
- void