how to specify overcharging weapons?
Code:if "weapon reload"
Checking if weapon is reloaded?
Discussion in 'Rust Development' started by HISHNIK__, Feb 2, 2017.
-
Calytic Community Admin Community Mod
I'm not sure what "overcharging" means
but you can check if your gun has full ammo relatively easily..
Code:var weapon = item.GetHeldEntity() as BaseProjectile; if(weapon.primaryMagazine.contents == weapon.primaryMagazine.capacity) { // WEAPON HAS A FULL CLIP }
-
-
Calytic Community Admin Community Mod
I see
My suggestion would be to use HotKeys, or implement your own bind
HotKeys for Rust | Oxide
then in console as admin..
Code:hotkey.bind r "+reload;mycustomcommand"
Code:[ConsoleCommand("mycustomcommand")] void cmdMyCustomCommand(ConsoleSystem.Arg arg) { //DO SOMETHING HERE }
-
No. I need procedure reload gun...