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

Implemented CanMountEntity hook (Rust)

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

  1. k1lly0u

    k1lly0u Plugin Developer

    Code (C#):

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

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

            this._mounted = player;
            player.MountObject(this, 0);
            player.transform.rotation = this.mountAnchor.transform.rotation;
            player.ServerRotation = this.mountAnchor.transform.rotation;
            player.ClientRPCPlayer(null, player, "ForcePositionTo", player.transform.position, null, null, null, null);
            base.SetFlag(BaseEntity.Flags.Busy, true, false);
    Last edited: Sep 23, 2017
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Implemented locally.
  3. ninco90

    ninco90 Plugin Developer

    How could this be used to sit on a chair?
  4. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Unless it is triggered by Rust for that entity, you can't.
    ninco90 likes this.