AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Can change model, but how to I specify the model submodel? (https://forums.alliedmods.net/showthread.php?t=6007)

Trp. Jed 09-19-2004 11:37

Can change model, but how to I specify the model submodel?
 
Subject kind of says it all. I can change the players viewmodel using:

entity_set_string( id, EV_SZ_viewmodel, "models/new_weapon.mdl" )

But how do I then tell it to use a specific part/submodel or sequence?

For example, my model has two bodygroups, "weapon" and "hands". What I would like to do is after setting the viewmodel to the new model is specify that from group "hands" that I want to use submodel 1.

As the second part states, how can I set the specific sequence for the viewmodel also?


All times are GMT -4. The time now is 17:15.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.