Raised This Month: $134 Target: $400
 33% 

[TF2] Getting the entity index of a cosmetic in a specific slot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HelpMe
Member
Join Date: Jun 2013
Location: Home
Old 10-18-2017 , 06:34   [TF2] Getting the entity index of a cosmetic in a specific slot
Reply With Quote #1

How can I get the entity index of a cosmetic in slot 1 for example? I want to use this index to change the color of the cosmetic with SetEntityRenderColor.
I don't think TF2II is an option so if I don't have to hard code it all, maybe TF2IDB could be an option, but I couldn't really find a function for finding the entity index of cosmetics. However, I am not sure if there actually is a function for it in TF2IDB.
HelpMe is offline
ThatKidWhoGames
AlliedModders Donor
Join Date: Jun 2013
Location: My House
Old 10-18-2017 , 10:08   Re: [TF2] Getting the entity index of a cosmetic in a specific slot
Reply With Quote #2

Quote:
Originally Posted by HelpMe View Post
How can I get the entity index of a cosmetic in slot 1 for example? I want to use this index to change the color of the cosmetic with SetEntityRenderColor.
I don't think TF2II is an option so if I don't have to hard code it all, maybe TF2IDB could be an option, but I couldn't really find a function for finding the entity index of cosmetics. However, I am not sure if there actually is a function for it in TF2IDB.
This might help: https://github.com/powerlord/sourcem...2wearables.inc
__________________


I take custom plugin requests, add me on Steam for details.
ThatKidWhoGames is offline
HelpMe
Member
Join Date: Jun 2013
Location: Home
Old 10-18-2017 , 11:26   Re: [TF2] Getting the entity index of a cosmetic in a specific slot
Reply With Quote #3

Quote:
Originally Posted by ThatKidWhoGames View Post
Thanks , but only TF2LoadoutSlot_Misc2 works (and this is slot 3)

Last edited by HelpMe; 10-18-2017 at 11:28.
HelpMe is offline
Reply


Thread Tools
Display Modes

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 16:12.


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