Hey guys,
is there a way to mute autoturrets. That all players dont hear the "search" sound of them?
ideally not global for all turrets. Only some admin chossen turrets.
Rust Mute autoturrets
Discussion in 'Plugin Requests' started by ScHigGn, Aug 15, 2016.
-
I am currently not at my PC to test this but it should work.
Code:void OnEntitySpawned(BaseNetworkable entity) { var autoTurret = entity as AutoTurrent; var player = autoTurrent.creatorEntity as Player; if(player != null && autoTurrent != null && player?.net?.connection != null && player.net.connection.authLevel == 2) autoTurrent.turnLoop.audioSource.mute = true; }
-
Could you make this into a completed addon when you get a chance... I run a modded server and know players who have 50+ on a base
[DOUBLEPOST=1471289735][/DOUBLEPOST]possibly make a version to mute all for all players.. like a toggle -
-
I will be able to test this in the morning.
-
I can also test this soon.