Solved Timed Explosive fuse time

Discussion in 'Rust Development' started by Burak 2, Jul 27, 2018.

  1. How can I increase fuse time of the timed explosive charge? any idea

    Thanks,
     
  2. I haven't tested this code, but I believe something like this will work:

    Code:
    void OnExplosiveThrown(BasePlayer player, BaseEntity entity)
            {
                var c4 = entity as TimedExplosive;
                if (c4 == null) return;            c4.timerAmountMin = 20;
                c4.timerAmountMax = 20;
            }
     
  3. Code:
    c4.SetFuse(float.MaxValue);
    this one worked and I added timer to kill the entity done Ty,