Addressing another type within same type

Blitz3D Forums/Blitz3D Programming/Addressing another type within same type

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I have a type called .player . As players log in it creates a new.player .

I have a main loop that checks each players moves/actions in turn. My problem is , if i want to address a different player than the one the loop is on, say to change a field value , how would i access that player and then continue with the main loop?

my only solution i have come up with so far, is to save players stats to the HD, and then i can access them randomly by player\name. the down side is this takes time accessing the HD. The upside is i have random access to any player field.