I want to use var c4 for all voids but I cant define it outside of void any idea?Code:private void OnExplosiveThrown(BasePlayer player, BaseEntity entity, InputState input) { if (test == true && permission.UserHasPermission(player.userID.ToString(), "test.test)) { var c4 = entity as TimedExplosive; if (c4 == null) return; } }
Because if plugin reload all c4 explode and damage or they stay there forever
I want to kill them if plugin unload but Unload void cant find c4 because I couldnt define it where it can see.
Void Variable Help
Discussion in 'Rust Development' started by Burak 2, Jul 29, 2018.