Midnighters 152 Posted August 18, 2017 Hello, I was wondering if it is possible to select the player object that is associated with a player's UID. What I am trying to achieve is a player save on the server profile. Share this post Link to post Share on other sites
Nikander 123 Posted August 18, 2017 Something like this maybe private _players = []; {if (getPlayerUID _x in MY_UID_LIST) then {_players pushBack _x}} forEach allPlayers; 1 Share this post Link to post Share on other sites
Midnighters 152 Posted August 18, 2017 4 minutes ago, Nikander said: Something like this maybe private _players = []; {if (getPlayerUID _x in MY_UID_LIST) then {_players pushBack _x}} forEach allPlayers; Aye, I'll take a look at trying to use this method. Thanks for the feedback. Share this post Link to post Share on other sites
jshock 513 Posted August 19, 2017 Another way to skin the cat: EDIT: Sorry if the format is bad, my phone is being an ass atm... private _players = allPlayers select { getPlayerUID _x in MY_UID_LIST}; 1 Share this post Link to post Share on other sites
Midnighters 152 Posted August 19, 2017 11 hours ago, jshock said: Another way to skin the cat: EDIT: Sorry if the format is bad, my phone is being an ass atm... private _players = allPlayers select { getPlayerUID _x in MY_UID_LIST}; Yep, I modified the code above to do exactly what you did here. Thanks for both of your help. Share this post Link to post Share on other sites