Setting models
Hey, I tried to make a small plugin where it forces the user to use the model on the server, but it doesn't work.. For example, I want them to use v_LOCKscout.mdl as their scout model.
Code:
Anyone know? :? |
Code:
entity_set_string(0,EV_SZ_viewmodel,"models/v_LOCKscout.mdl")Code:
entity_set_string(id,EV_SZ_viewmodel,"models/v_LOCKscout.mdl") |
Yea, I just tried that...still didn't work. The model is uploaded to /models if you're wondering, it downloads fine.
|
From engine.inc:
Code:
Try using that function instead of entity_set_string()... |
xeroblood, you just kind of misinterpreted his entire question.
|
:P shhhhh.... I do that from time to time... :D
|
So.. Anyone? :P
|
Nope, should work. Try experimenting with a set_task on the change to Scout of 0.1 seconds before setting the view model and see if that works. If it doesn't keep increasing the time by 0.1 seconds until you can get it to work. If you reach 1.0 seconds and it still doesn't work it probably isn't that.
|
Should I set it as repeating or what?
|
No.
|
| All times are GMT -4. The time now is 14:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.