I have seen alot of threads about this topic but none of them had the solution.
I got a
v_ model, it contains multiple sub-models inside.
I want to choose wich sub-model will be shown.
This is the code to set viewmodel:
PHP Code:
set_pev(id, pev_viewmodel2, "models/server/testwep.mdl")
It works correctly.
Now, how can i choose wich sub-model will be shown?
I know for body models i just need to do:
PHP Code:
set_pev(id, pev_body, *Number of SubModel*)
How can i do the same for weapon v_ models?
I saw this code somewhere else
PHP Code:
set_pev(id, pev_viewmodel2, "models/server/testwep.mdl")
new yo[32]
get_weaponname(CSW_KNIFE, yo, sizeof yo - 1)
new weapon = fm_find_ent_by_owner(-1, yo, id)
set_pev(weapon, pev_body, *Number of SubModel*)
But it doesnt work.
Can somebody tell me a way to achieve this?
Thank you.