Product Chat (Early Access) / Any better way to accomplish this?

Author
Message
puzzle20
1
Years of Service
User Offline
Joined: 22nd Jan 2023
Location:
Posted: 7th Nov 2023 21:50
Right now I have global list of players for server.
When triggering events on players I have to loop list which could be improved by just storing pointer in event but I don't think there is pointers in the language. Or am I wrong?

Any ideas for improving this so I can do away with the loops for each event?
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 8th Nov 2023 08:49
What language?

If you mean Lua and are storing in a list then yes you can store the key in the event and use that to go straight to the entry in the list.

Been there, done that, got all the T-Shirts!
PM
puzzle20
1
Years of Service
User Offline
Joined: 22nd Jan 2023
Location:
Posted: 9th Nov 2023 04:30
Thank you. That will work nice.
PM

Login to post a reply

Server time is: 2024-12-21 18:28:08
Your offset time is: 2024-12-21 18:28:08