brave 29 Posted June 7, 2021 Hello, I'm trying to get my local players index (aka chat pid), but it's always returning -1. Does anyone know if this a bug or am I doing it wrong? Players.localPlayer().getIndex();
Pandemic 2823 Posted June 7, 2021 I think someone else tried to grab the "chat pid" but I don't believe it was the index we have. If you really want the index (which again I don't know if it's what you're really looking for) you'd need to use Client#getPlayers and find the local player in there, and that would be the index we have.
brave 29 Author Posted June 7, 2021 32 minutes ago, Pandemic said: I think someone else tried to grab the "chat pid" but I don't believe it was the index we have. If you really want the index (which again I don't know if it's what you're really looking for) you'd need to use Client#getPlayers and find the local player in there, and that would be the index we have. Thank you.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.