Continuing on from my last request: I am creating scripting to add and remove players from a list of the players in a local area so that I do not have to poll the entire player list all the time to address players merely in a given area.
I want a way to store a reference to the player object in a list - but I’m not quickly finding it. Is there way to do this easily? I don’t find some sort of UUID reference easily.
The most promising lead I found is some documentation about proving an object is a PC:
// PCs count down from 7fffffff and all other objects count up from 00000000.
// PC objects will start with "7ff" and be 8 characters long.
However I’m not sure, do these references remain the same within one session? Or can they change?
I am not worried about maintaining these lists across resets or crashes. If they don’t change within one session I could use this for lookups I think.