Results 1 to 5 of 5

Thread: List of all players for RscListbox.

  1. #1

    List of all players for RscListbox.

    I'm trying to create a dialog and I would like to find a way to gather an array of all players inside a server. I was thinking about doing something like this.

    Code:
    {
    
       _idx = lbAdd [5005, name _x];
    
    } forEach <arrayofallplayers>;
    The only problem is I don't know how to get an array of all the players, I've tried using playableUnits with the "for" command with a check to see if they're a player but no dice. HALP!!!
    Thanks ahead of time.

  2. #2

  3. #3
    Gunnery Sergeant
    Join Date
    Mar 7 2011
    Location
    Nebraska
    Posts
    571
    Author of the Thread
    Disregard, sorry I came off like an asshole but I was mislead into thinking this was even for the playable units that weren't in game. Thanks.

  4. #4
    If enabledAI is true, I think it'll return those that are set to playable units aswell.
    You could combine it with this
    http://community.bistudio.com/wiki/isPlayer

  5. #5
    Gunnery Sergeant
    Join Date
    Mar 7 2011
    Location
    Nebraska
    Posts
    571
    Author of the Thread
    I got it working the way I want. Many Thanks.

Similar Threads

  1. Replies: 3
    Last Post: Aug 1 2012, 16:51
  2. Players list array?
    By GregRUS in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 8
    Last Post: Apr 2 2011, 03:34
  3. List players on a server - mp command
    By ablueman in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 7
    Last Post: Nov 14 2009, 21:25
  4. A list of all players
    By Drinker in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 2
    Last Post: Mar 3 2004, 02:45
  5. Problem with players getting stuck in player list
    By amos m in forum MULTIPLAYER
    Replies: 0
    Last Post: May 25 2002, 12:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •