Jump to content
Sign in to follow this  

Recommended Posts

_list_playable = AllUnits;


{
if (isPlayer _x) then
{
	diag_log format ["Unit ID %1", _x];//This one returns the player name
	_puid = getPlayerUID _x;//Nothing
	diag_log format ["PUID: %1", _puid];		

};


} foreach _list_playable;

This always returns nothing (pure blank nothingness). How to get the player unique ID in this method? It appears to get the session ID/name/something correctly for each player, but the UID fails.

---------- Post added at 02:05 PM ---------- Previous post was at 02:03 PM ----------

Actually ignore this, I am a dummy, forgot reading the fineprint.

http://community.bistudio.com/wiki/getPlayerUID

Additional Information

Multiplayer:

UID string is returned only in multiplayer.

Share this post


Link to post
Share on other sites

Create an array that contains all the PLAYABLE units.

Share this post


Link to post
Share on other sites

I am using AllUnits because it still works in editor, while PlayableUnits only works in MP.

Share this post


Link to post
Share on other sites

playableUnits has always worked for me whilst editing a mission :p

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×