UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

IsTagInModel()

broken avatar :(
Created 8 years ago
by alaurenc9
0 Members and 1 Guest are viewing this topic.
1,316 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2012
Last active: 9 months ago
Posts
577
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
My preferred name is "xSanchez78".
Check me out here: www.steamcommunity.com/id/xSanchez78
×
alaurenc9's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
alaurenc9's Contact & Social LinksxSanchez78xSanchez78xSanchez78xSanchez78xSanchez78xSanchez78
so i was searching thru script reference and found some functions, and realized i can put together a util with these funcs that might be useful somehow.

Just put in the xmodel name and the tag you are checking for, and it will tell you if that xmodel has the tag in it or not.

Code Snippet
Plaintext
IsTagInModel( model, tag )
{
num = GetNumParts( model );
for( i = 0; i < num; i ++ )
{
if( GetPartName( model, i ) == tag )
{
return true;
}
}
return false;
}

 
Loading ...