Post: [RELEASE] Get All Model Tags
10-28-2011, 04:39 AM #1
Blackstorm
Veni. Vidi. Vici.
(adsbygoogle = window.adsbygoogle || []).push({}); This is a function that gets all tags from a model... basically all the bones that you can attach stuff to.

Code:

    
getModelTags( model )
{
array = [];
for( i = 0; i < GetNumParts( model ); i++ )
array[ i ] = GetPartName( model, i );
return( array );
}


usage:

    
modelTags = getModelTags( self.model );
self attach( "whatever", modelTags[ 2 ] );


Enjoy;

Credits:

Zeroy
Me
(adsbygoogle = window.adsbygoogle || []).push({});
10-28-2011, 12:43 PM #2
247Yamato
< ^ > < ^ >
There is something like this in _weapons.gsc, :P

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo