1. it's kind of a noob question, but how can I get BasePlayer in any other functions ?
    for example OnTick() that affect the BasePlayer

    thanks.
     
  2. Calytic

    Calytic Community Admin Community Mod

    Code:
    BasePlayer player = BasePlayer.Find("STEAMID");
     
  3. is there a way to get local player ? or atleast get the STEAMID of the local player ?
     
  4. Wulf

    Wulf Community Admin

    In C#, player.userID usually. In every other plugin language, rust.UserIDFromPlayer(player).
     
  5. Thanks again, Wulf.
     
  6. Just one thing to add: OnTick at the server is not run per player, so the concept of a specific Player is this function is false anyway.
     
  7. Wulf

    Wulf Community Admin

    You'd have to loop through all the players and then find their player object, but it's a bit messy...