Raised This Month: $ Target: $400
 0% 

Retrieve Model size


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
darktemplar
Member
Join Date: Sep 2009
Old 05-30-2013 , 06:09   Retrieve Model size
Reply With Quote #1

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
darktemplar is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-30-2013 , 06:46   Re: Retrieve Model size
Reply With Quote #2

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.
__________________
Arkshine is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-31-2013 , 09:41   Re: Retrieve Model size
Reply With Quote #3

If you set model to entity, doesnt it automatically add size?
Or that was only for brush entities?
.Dare Devil. is offline
darktemplar
Member
Join Date: Sep 2009
Old 05-31-2013 , 13:10   Re: Retrieve Model size
Reply With Quote #4

But how can I use vec[3] for pev_mins and pev_maxs ?
darktemplar is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-31-2013 , 13:22   Re: Retrieve Model size
Reply With Quote #5

Divide by 2 and set negative for mins ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
darktemplar
Member
Join Date: Sep 2009
Old 06-29-2013 , 01:59   Re: Retrieve Model size
Reply With Quote #6

Ok, I'll try

By the way, can a weapon (which is attached to player by pev_movetype == MOVETYPE_FOLLOW) becomes solid ?
darktemplar is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:54.


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