Hey there,
its possible to turn off the flashlight mod from other players weapon? Or only client side?
Turning flashlight off?
Discussion in 'Rust Development' started by Sir BenSon, Dec 18, 2016.
-
Each weapon that can shoot shot is a so called BaseProjectile.
This class has a switch:
Code:// BaseProjectile public void SetLightsOn(bool isOn) { if (this.children != null) { foreach (ProjectileWeaponMod current in from ProjectileWeaponMod x in this.children where x != null && x.isLight select x) { current.SetFlag(BaseEntity.Flags.On, !current.HasFlag(BaseEntity.Flags.On), false); } } }