nolanri Posted January 15, 2016 Share Posted January 15, 2016 recipe Open Box of 9mm Bullets { BulletsBox, Result:Bullets9mm=3, Sound:PZ_PutInBag, Time:5.0, } recipe Open Box of .223 Ammo { 223Box, Result:223Bullets=2, Sound:PZ_PutInBag, Time:5.0, } recipe Open Box of .308 Ammo { 308Box, Result:308Bullets=2, Sound:PZ_PutInBag, Time:5.0, } recipe Open Box of Shotgun Shells { ShotgunShellsBox, Result:ShotgunShells=2, Sound:PZ_PutInBag, Time:5.0, } Link to comment Share on other sites More sharing options...
Svarog Posted January 15, 2016 Share Posted January 15, 2016 Because the result item has Count value set to something above 1 which means the game won't spawn a lower number of that item than Count=X. That's why you always find 10 bullets and 12 shotgun shells in cupboards.For example, if opening a box of 9mm ammo had Result:Bullets9mm=10 it would give the player 100 bullets because Bullets9mm item has the Count = 10 set in it's script.Edit: Replaced the word Amount with Count as the post below shows it actually works. Link to comment Share on other sites More sharing options...
nolanri Posted January 15, 2016 Author Share Posted January 15, 2016 i was thinking you are crazy but then i saw it... item Bullets9mm { Count = 10, Weight = 0.1, Type = Normal, DisplayCategory = Ammo, DisplayName = 9mm Rounds, Icon = 40calAmmoBox, } didnt notice that count before. thanks Svarog 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now