1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Implemented CanDismountEntity hook (Rust)

Discussion in 'Feature Suggestions' started by k1lly0u, Sep 23, 2017.

  1. k1lly0u

    k1lly0u Plugin Developer

    Code (C#):

        // BaseMountable
        public void DismountPlayer(BasePlayer player)
            if(this._mounted ==null)

            object[] objArray = new object[] { this, player };  
            if (Interface.CallHook("CanDismountEntity", objArray) != null)

           Vector3 dismountPosition =this.GetDismountPosition(player);
           this._mounted.ClientRPCPlayer(null, this._mounted, "ForcePositionTo", dismountPosition, null, null, null, null);
           this._mounted =null;
           base.SetFlag(BaseEntity.Flags.Busy, false, false);
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Implemented locally as object CanDismountEnity(BaseMountable mount, BasePlayer player)