Read-only Lua API for player profiles
This adds read-only access to the player profiles. The profiles are provided as a global array named profiles
, which is 0-indexed like the players
array. To get the currently in-use profile, the currprofile
global can be used to index the profiles
array. All profile_t
fields, except for secret_key
and controls
, can be read in Lua.
Merge request reports
Activity
added 2 commits
added 1 commit
- 50d50546 - Add profile field on player for accessing player profile
added Lua label
Thanks for creating your first merge request, but the exposure of the RRID system to Lua is intentionally minimal. Almost all of this is completely clientsided and it's almost begging users to create scripts that work when making a listen server and break in online games.
At minimum, we might make the six character profile name (as opposed to tag) netsynced in the join process and available to Lua as well... but that's about it, pending a compelling argument to reconsider the wider stance.
We won't be closing this merge request immediately, but it's only fair to know there's not a lot of enthusiasm for it at present.
added Feature label