AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Getting Model Bodygroup Names (https://forums.alliedmods.net/showthread.php?t=259337)

wicked95 03-05-2015 11:44

Getting Model Bodygroup Names
 
Can I get the bodygroup names of a model throu pawn?
I know I can see them from the .qc file and hardcode it in the plugin but if there's a way I can get them would be nice.

RateX 03-05-2015 12:41

Re: Getting Model Bodygroup Names
 
What exactly are you trying to achieve?

wicked95 03-06-2015 02:29

Re: Getting Model Bodygroup Names
 
1 Attachment(s)
I'm trying to get these bodygroup names in an array for a menu.

Attached part of .qc file:

Jhob94 03-06-2015 04:16

Re: Getting Model Bodygroup Names
 
I am not sure, but i think that is not possible.

GuskiS 03-06-2015 06:52

Re: Getting Model Bodygroup Names
 
Quote:

Originally Posted by Jhob94 (Post 2270183)
I am not sure, but i think that is not possible.

If you are not sure, then don't post?
It is possible to get bbox and cbox from model file, I have code for that, will post when I get home. I think you should be able to adjust to that.

Arkshine 03-06-2015 07:17

Re: Getting Model Bodygroup Names
 
Yes you can, any file can be parsed.

Someone has a model example to attach?

RateX 03-06-2015 07:50

Re: Getting Model Bodygroup Names
 
Try the one from this thread

Arkshine 03-06-2015 09:58

Re: Getting Model Bodygroup Names
 
You can play with that.

Output example

Code

wicked95 03-06-2015 15:54

Re: Getting Model Bodygroup Names
 
Thank you. That was a big help. :)
You can lock the thread.


All times are GMT -4. The time now is 18:04.

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