AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Retrieve Model size (https://forums.alliedmods.net/showthread.php?t=217127)

darktemplar 05-30-2013 06:09

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 :)

Arkshine 05-30-2013 06:46

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.

.Dare Devil. 05-31-2013 09:41

Re: Retrieve Model size
 
If you set model to entity, doesnt it automatically add size?
Or that was only for brush entities?

darktemplar 05-31-2013 13:10

Re: Retrieve Model size
 
But how can I use vec[3] for pev_mins and pev_maxs :D ?

ConnorMcLeod 05-31-2013 13:22

Re: Retrieve Model size
 
Divide by 2 and set negative for mins ?

darktemplar 06-29-2013 01:59

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.