AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [TF2] Getting the entity index of a cosmetic in a specific slot (https://forums.alliedmods.net/showthread.php?t=302141)

HelpMe 10-18-2017 05:34

[TF2] Getting the entity index of a cosmetic in a specific slot
 
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.

ThatKidWhoGames 10-18-2017 09:08

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

Originally Posted by HelpMe (Post 2555158)
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

HelpMe 10-18-2017 10:26

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

Originally Posted by ThatKidWhoGames (Post 2555187)

Thanks :D, but only TF2LoadoutSlot_Misc2 works (and this is slot 3) :|


All times are GMT -4. The time now is 07:55.

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