-
Hey mate, This is more a question. Any thoughts on how I can map this back to an actual player from |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hey mate, Looks like the I was able to get the player data using something like const getByUserIndex = (index) => {
let userInfos = demo.stringTables.findTableByName('userinfo').entries;
for (let i = 0; i < userInfos.length; ++i) {
let userEntry = userInfos[i];
if (userEntry.entry == index) {
return userEntry.userData;
}
}
return null;
} Cheers for pointing me in the right direction :) |
Beta Was this translation helpful? Give feedback.
-
You can use |
Beta Was this translation helpful? Give feedback.
You can use
demo.entities.entities.get(e.funfact_player)
to get the player entity. From there you can get the user info (player.userInfo
) without having to manually iterate through the userinfo array