TEMPEST.114 Posted March 27, 2024 Posted March 27, 2024 Both in the net singleton and elsewhere we are able to the the string of the 'playerName' but nowhere can we get the playerID with the exception of iterating around net.get_player_list( ) for a playerName match. That seems inefficient. If we supply a playerName string to net, we should be able to get either the playerID back, or even use net.get_player_info(string playerName as a polymorphic alternative. Alternatively the net.get_my_player_id( ) shouldn 't always return 1 on a server, but should take a parameter of 'playerName' and return the playerID that matches that playername.
Recommended Posts