Retrieve Model size
Hi,
I want to create an entity with a model. But the problem is I don't know how to retrieve the model size to set to the entity. I found a stock get_model_size (https://forums.alliedmods.net/showthread.php?t=178658) . But I don't know how to use. Can someone help me please ? Thanks :) |
Re: Retrieve Model size
You don't understand what exactly ?
mdlsize(filename[],Float:vec[3]) filename is... the model you want to retrieve the size. vec is... the vector containing the model size. |
Re: Retrieve Model size
If you set model to entity, doesnt it automatically add size?
Or that was only for brush entities? |
Re: Retrieve Model size
But how can I use vec[3] for pev_mins and pev_maxs :D ?
|
Re: Retrieve Model size
Divide by 2 and set negative for mins ?
|
Re: Retrieve Model size
Ok, I'll try :)
By the way, can a weapon (which is attached to player by pev_movetype == MOVETYPE_FOLLOW) becomes solid ? |
| All times are GMT -4. The time now is 16:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.