Skip to content

How can I get skin id #315

Answered by saul
yarikdevcom asked this question in Questions
Jul 13, 2021 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

I've just opened a PR to make the paint kit available in player_death events. See #352.

Unfortunately there's no other way to get this from a demo file. You'd have to use the Steam APIs to get the paint kit for a given item ID. You can get the item ID with:

const itemId = new Long(
  weapon.getProp("DT_ScriptCreatedItem", "m_iItemIDLow"),
  weapon.getProp("DT_ScriptCreatedItem", "m_iItemIDHigh"),
  true
);

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@yarikdevcom
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by saul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants