I'm working on an AI mission and I want to have a random number of magazines in the for the weapon that is in the box. The mission is a sniper mission and there's only one rifle in the box, with ammo. Here's what I have so far:
This is the part I'm not too sure about. I'm using someone's code as an example, but it's a little outside my experience. To generate a random number of magazines (defined by _magazinelist), I am going to use this code:
If I understand this correct, _weaponrnd will generate a random number of magazines and _ammo can be used in the mission as loot in the box and will put _weaponrnd number of _ammo magazines in the box. Is that correct?
Question
BetterDeadThanZed
I'm working on an AI mission and I want to have a random number of magazines in the for the weapon that is in the box. The mission is a sniper mission and there's only one rifle in the box, with ammo. Here's what I have so far:
Random rifle is selected:
Magazine list is generated based on the weapon that is selected:
This is the part I'm not too sure about. I'm using someone's code as an example, but it's a little outside my experience. To generate a random number of magazines (defined by _magazinelist), I am going to use this code:
If I understand this correct, _weaponrnd will generate a random number of magazines and _ammo can be used in the mission as loot in the box and will put _weaponrnd number of _ammo magazines in the box. Is that correct?
Link to comment
Share on other sites
16 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now