A few things I havn't noticed in the Assembly/Code stuff that should be added.
player.HasWeaponEquiped()Code:player.HasWeaponEquiped() player.WeaponEquiped() player.AmmoInInventory //Im not sure if this is already a thing
Can be used to start a GUI on a player to show that he is holding a weapon
player.WeaponEquiped()
Can be used to start a GUI to show a player what weapon he is carrying
player.AmmoInInvetory
To do something like
player.AmmoInInvetory(Rifle Ammo) / 30
So its shows how many magazines a AK can hold
Im making a ammo GUI to model after Arma 3 Life a little bit
I need these to finish it up
Player weapon/ammo checks
Discussion in 'Rust Development' started by DylanSMR, Aug 8, 2015.
-
Wulf Community Admin
All of those can be done via code currently, it just takes more than a single line though.
-
Can I get a example of how you would read what weapon a player has out?
-
Can I also get that example ?
-
Code:
var item = player.GetActiveItem();

