Solved Find entity by net.ID

Discussion in 'Rust Development' started by Sanlerus, Jul 27, 2015.

  1. Hi guys. How to call function for my netID. I want to know whether there is an entity with such netID.
    Code:
    public BaseNetworkable Find(uint uid)
        {
          BaseNetworkable baseNetworkable = (BaseNetworkable) null;
          if (!this.entityList.TryGetValue(uid, out baseNetworkable))
            return (BaseNetworkable) null;
          return baseNetworkable;
        }
     
  2. Wulf

    Wulf Community Admin

    BaseNetworkable.serverEntities.Find(id)