Jump to content
Sign in to follow this  
thec1aw

Possible to check for empty player id's?

Recommended Posts

Is there a way to check for player id=[] ?

Share this post


Link to post
Share on other sites

   {
    if((getPlayerUID _x =="")&&(IsPlayer _x))then{Player sidechat format ["%1 has no UID",name _x];};
 }foreach Playableunits;

According to the wiki: getPlayerUID if the unit is not a player, it will return an empty string, hence the IsPlayer check

Wrong place to ask scripting questions though

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  

×