Solved JS and finding players

Discussion in 'Rust Development' started by KillParadise, Mar 1, 2015.

  1. How would I go about finding a player based off an entered argument?

    For example: someone enters the command /test killparadise
    how would I go about finding the player info based on this?
    I've tried doing:
    Code:
    BasePlayer.activePlayerList
    
    and some others, but to no luck. Any info is appreciated! Thanks!
     
  2. Code:
    var global = importNamespace("");
    print(global.BasePlayer.activePlayerList.Count);
     
  3. Welp. That was simpler than I thought it was going to be. Thanks a bunch
     
  4. There is also global.BasePlayer.Find()
    You can pass a name, steamID or IP to it.